We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
At a few points in the code compareTo is implemented with the following pattern:
compareTo
if (e instanceof SomeClass) { //Standard compareTo check. } else { return getClass().getName().compareTo(e.getClass().getName()); }
What is this pattern supposed to be looking for?
The text was updated successfully, but these errors were encountered:
Marking as a duplicate of #40, since the underlying issue seems to be the mixing of different types of comparison.
Sorry, something went wrong.
No branches or pull requests
At a few points in the code
compareTo
is implemented with the following pattern:What is this pattern supposed to be looking for?
The text was updated successfully, but these errors were encountered: