As many people before, I hit IllegalArgumentException: Comparison method violates its general contract!
I need to check the legacy code for all possible occurences of this. The best way would be a static analysis tool that will go through all the code and detect possible issues.
- How does TimSort detect these issues?
- Is it possible to run static analysis of the code and find the issues?
- Is there such a tool available? Maybe as a rule for already existing static analysis tool?