Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: a never execution of if block #40

Conversation

miurahr
Copy link
Contributor

@miurahr miurahr commented Oct 2, 2023

  • There is a duplication of instanceof check in if block that is never executed.

  • The block has a problem which Spotbugs report as BC issue

    • it is impossible to cast from org.trie4j.bv.BytesRank1OnlySuccinctBitVector to org.trie4j.bv.LongsSuccinctBitVector at org.trie4j.io.TrieWriter.writeSuccinctBitVector(SuccinctBitVector).
  • This looks a typo of instanceof check

- fix a problem that is impossible to cast from org.trie4j.bv.BytesRank1OnlySuccinctBitVector to org.trie4j.bv.LongsSuccinctBitVector at org.trie4j.io.TrieWriter.writeSuccinctBitVector(SuccinctBitVector)
- This looks a typo of instanceof check

Signed-off-by: Hiroshi Miura <[email protected]>
@miurahr miurahr changed the title fix: wrong detection of an object type fix: a never execution of if block Oct 2, 2023
@takawitter takawitter merged commit 1597249 into takawitter:master Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants