[jsemver] 38/95: Rename two API methods
Alexandre Viau
reazem-guest at moszumanska.debian.org
Mon Feb 16 14:58:28 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 9ce1a0b063cbb8500348040231818feb39c470db
Author: Zafar Khaja <zafarkhaja at gmail.com>
Date: Mon Oct 14 22:31:31 2013 +0400
Rename two API methods
Version.lessThanOrEqualsTo() => Version.lessThanOrEqualTo()
Version.greaterThanOrEqualsTo() => Version.greaterThanOrEqualTo()
---
README.md | 4 ++--
src/main/java/com/github/zafarkhaja/semver/Version.java | 4 ++--
.../java/com/github/zafarkhaja/semver/VersionTest.java | 16 ++++++++--------
3 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
index 7b120ad..36242ab 100644
--- a/README.md
+++ b/README.md
@@ -150,9 +150,9 @@ int result = v1.compareTo(v2); // < 0
boolean result = v1.equals(v2); // false
boolean result = v1.greaterThan(v2); // false
-boolean result = v1.greaterThanOrEqualsTo(v2); // false
+boolean result = v1.greaterThanOrEqualTo(v2); // false
boolean result = v1.lessThan(v2); // true
-boolean result = v1.lessThanOrEqualsTo(v2); // true
+boolean result = v1.lessThanOrEqualTo(v2); // true
```
When determining version precedence build metadata is ignored (SemVer p.10).
diff --git a/src/main/java/com/github/zafarkhaja/semver/Version.java b/src/main/java/com/github/zafarkhaja/semver/Version.java
index 8fb8d68..74efc71 100644
--- a/src/main/java/com/github/zafarkhaja/semver/Version.java
+++ b/src/main/java/com/github/zafarkhaja/semver/Version.java
@@ -245,7 +245,7 @@ public class Version implements Comparable<Version> {
return compareTo(other) > 0 ? true : false;
}
- public boolean greaterThanOrEqualsTo(Version other) {
+ public boolean greaterThanOrEqualTo(Version other) {
return compareTo(other) >= 0 ? true : false;
}
@@ -253,7 +253,7 @@ public class Version implements Comparable<Version> {
return compareTo(other) < 0 ? true : false;
}
- public boolean lessThanOrEqualsTo(Version other) {
+ public boolean lessThanOrEqualTo(Version other) {
return compareTo(other) <= 0 ? true : false;
}
diff --git a/src/test/java/com/github/zafarkhaja/semver/VersionTest.java b/src/test/java/com/github/zafarkhaja/semver/VersionTest.java
index a2688ba..9533b51 100644
--- a/src/test/java/com/github/zafarkhaja/semver/VersionTest.java
+++ b/src/test/java/com/github/zafarkhaja/semver/VersionTest.java
@@ -77,12 +77,12 @@ public class VersionTest {
}
@Test
- public void shouldHaveGreaterThanOrEqualsToMethodReturningBoolean() {
+ public void shouldHaveGreaterThanOrEqualToMethodReturningBoolean() {
Version v1 = Version.valueOf("2.3.7");
Version v2 = Version.valueOf("1.3.7");
- assertTrue(v1.greaterThanOrEqualsTo(v2));
- assertFalse(v2.greaterThanOrEqualsTo(v1));
- assertTrue(v1.greaterThanOrEqualsTo(v1));
+ assertTrue(v1.greaterThanOrEqualTo(v2));
+ assertFalse(v2.greaterThanOrEqualTo(v1));
+ assertTrue(v1.greaterThanOrEqualTo(v1));
}
@Test
@@ -95,12 +95,12 @@ public class VersionTest {
}
@Test
- public void shouldHaveLessThanOrEqualsToMethodReturningBoolean() {
+ public void shouldHaveLessThanOrEqualToMethodReturningBoolean() {
Version v1 = Version.valueOf("2.3.7");
Version v2 = Version.valueOf("1.3.7");
- assertFalse(v1.lessThanOrEqualsTo(v2));
- assertTrue(v2.lessThanOrEqualsTo(v1));
- assertTrue(v1.lessThanOrEqualsTo(v1));
+ assertFalse(v1.lessThanOrEqualTo(v2));
+ assertTrue(v2.lessThanOrEqualTo(v1));
+ assertTrue(v1.lessThanOrEqualTo(v1));
}
@Test
--
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