[jsemver] 90/95: Fix the wrong return value in the BUILD_AWARE_ORDER example

Alexandre Viau reazem-guest at moszumanska.debian.org
Mon Feb 16 14:58:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

reazem-guest pushed a commit to branch master
in repository jsemver.

commit 6f025498a94475a330e24622343ac5c15966a8c6
Author: Zafar Khaja <zafarkhaja at gmail.com>
Date:   Thu Aug 14 20:37:54 2014 +0300

    Fix the wrong return value in the BUILD_AWARE_ORDER example
---
 README.md | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index f8d3601..020f5c7 100644
--- a/README.md
+++ b/README.md
@@ -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 = v1.compareWithBuildsTo(v2);  // < 0
-boolean result = v1.equals(v2);           // false
+int result     = v1.compareTo(v2);            // = 0
+boolean result = v1.equals(v2);               // true
+int result     = v1.compareWithBuildsTo(v2);  // < 0
 ~~~
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jsemver.git



More information about the pkg-java-commits mailing list