Skip to content

Commit

Permalink
BUG: Lucene.Net.Store.CompoundFileDirectory::ReadEntries(): throw Ass…
Browse files Browse the repository at this point in the history
…ertionError rather than InvalidOperationException (see #446).
  • Loading branch information
NightOwl888 committed Apr 26, 2021
1 parent 69ddeae commit a7ddb44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lucene.Net/Store/CompoundFileDirectory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private static IDictionary<string, FileEntry> ReadEntries(IndexInputSlicer handl
IOUtils.DisposeWhileHandlingException(priorE, stream, entriesStream);
}
// this is needed until Java 7's real try-with-resources:
throw new InvalidOperationException("impossible to get here");
throw AssertionError.Create("impossible to get here");
}

private static IDictionary<string, FileEntry> ReadLegacyEntries(IndexInput stream, int firstInt)
Expand Down

0 comments on commit a7ddb44

Please sign in to comment.