Fix the wrong return value in the BUILD_AWARE_ORDER example
This commit is contained in:
parent
f3b43eee9c
commit
6f025498a9
@ -222,8 +222,9 @@ Version v2 = Version.valueOf("1.0.0+build.2");
|
|||||||
|
|
||||||
int result = Version.BUILD_AWARE_ORDER.compare(v1, v2); // < 0
|
int result = Version.BUILD_AWARE_ORDER.compare(v1, v2); // < 0
|
||||||
|
|
||||||
int result = v1.compareWithBuildsTo(v2); // < 0
|
int result = v1.compareTo(v2); // = 0
|
||||||
boolean result = v1.equals(v2); // false
|
boolean result = v1.equals(v2); // true
|
||||||
|
int result = v1.compareWithBuildsTo(v2); // < 0
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user