From 34295d66b1c225036404f6904b69a657bcfa9652 Mon Sep 17 00:00:00 2001 From: Julien Eluard Date: Mon, 15 Nov 2010 23:50:18 +0100 Subject: Cleanup. --- api/src/main/java/org/semver/Checker.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'api/src/main/java/org') 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); -- cgit v1.2.3