diff options
Diffstat (limited to 'api/src/main/java/org')
-rw-r--r-- | api/src/main/java/org/semver/Checker.java | 7 |
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); |