Closed eugene-nikolaev closed 7 years ago
Hi, thank you for taking the time to contribute.
As far as I'm concerned every thing is correct here. According to the documentation compareTo
returns
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
So
v1 > v2 => 0 < v1.compareTo(v2) // positive
v2 < v1 => 0 > v2.compareTo(v1) // negative
Let me know if you need any more clarifications.
Oh, I am sorry, I was confused somewhere in my tests using your awesome library. Thanks!
Hello! It seems the version comparison is diverted with the SemVer Specification
So 1.3.7 < 1.3.7-alpha.
But according to the SemVer spec:
http://semver.org/
It should be visa versa.