aboutsummaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
authorJulien Eluard <[email protected]>2010-11-15 23:50:18 +0100
committerJulien Eluard <[email protected]>2010-11-15 23:50:18 +0100
commit34295d66b1c225036404f6904b69a657bcfa9652 (patch)
treeee78ad82006be3e78555ea427568889bfcad45de /api/src
parent5d31c40323d980fc394ee8caf505241e74bd37e5 (diff)
Cleanup.
Diffstat (limited to 'api/src')
-rw-r--r--api/src/main/java/org/semver/Checker.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/api/src/main/java/org/semver/Checker.java b/api/src/main/java/org/semver/Checker.java
index af208a9..f8b5ba8 100644
--- a/api/src/main/java/org/semver/Checker.java
+++ b/api/src/main/java/org/semver/Checker.java
@@ -82,10 +82,13 @@ public class Checker {
* @return true if specified {@link CompatibilityType}
*/
public static boolean isTypeCompatible(final CompatibilityType compatibilityType, final Version.Type type) {
+ System.out.println("==="+compatibilityType);
switch (compatibilityType) {
- case BACKWARD_COMPATIBLE_USER:
- return type.isAtLeast(Version.Type.PATCH);
case BACKWARD_COMPATIBLE_IMPLEMENTER:
+ System.out.println("BACKWARD_COMPATIBLE_IMPLEMENTER!!");
+ System.out.println(type.isAtLeast(Version.Type.PATCH));
+ return type.isAtLeast(Version.Type.PATCH);
+ case BACKWARD_COMPATIBLE_USER:
return type.isAtLeast(Version.Type.MINOR);
case NON_BACKWARD_COMPATIBLE:
return type.isAtLeast(Version.Type.MAJOR);