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
new Semver("1.0.0.1").compareTo(new Semver("1.0.0.2"))==new Semver("1.0.0.2").compareTo(new Semver("1.0.0.1"))==-1
This happens because isGreaterThan() returns false (which is "ok") but isLowerThan() returns in both cases true because they isEquivalent()==false
The text was updated successfully, but these errors were encountered:
Easiest fix:
public int compareTo(Semver s2) { if(isGreaterThan(s2)) return 1; if(s2.isGreaterThan(this)) return -1; return 0; }
I can do a PR if you want
Sorry, something went wrong.
No branches or pull requests
new Semver("1.0.0.1").compareTo(new Semver("1.0.0.2"))==new Semver("1.0.0.2").compareTo(new Semver("1.0.0.1"))==-1
This happens because isGreaterThan() returns false (which is "ok") but isLowerThan() returns in both cases true because they isEquivalent()==false
The text was updated successfully, but these errors were encountered: