Skip to content

Commit

Permalink
BUG: Lucene.Net.Grouping.BlockGroupingCollector: Throw NotSupportedEx…
Browse files Browse the repository at this point in the history
…ception rather than InvalidOperationException (see #446)
  • Loading branch information
NightOwl888 committed Apr 26, 2021
1 parent f35f410 commit 008b94c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Lucene.Net.Grouping/BlockGroupingCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,30 +100,30 @@ public override float GetScore()
return score;
}

public override int Freq => throw IllegalStateException.Create(); // TODO: wtf does this class do?
public override int Freq => throw UnsupportedOperationException.Create(); // TODO: wtf does this class do?

public override int DocID => doc;

public override int Advance(int target)
{
throw IllegalStateException.Create();
throw UnsupportedOperationException.Create();
}

public override int NextDoc()
{
throw IllegalStateException.Create();
throw UnsupportedOperationException.Create();
}

public override long GetCost()
{
return 1;
}

public override Weight Weight => throw IllegalStateException.Create();
public override Weight Weight => throw UnsupportedOperationException.Create();

public override ICollection<ChildScorer> GetChildren()
{
throw IllegalStateException.Create();
throw UnsupportedOperationException.Create();
}
}

Expand Down

0 comments on commit 008b94c

Please sign in to comment.