diff options
-rw-r--r-- | src/core/lombok/core/configuration/CheckerFrameworkVersion.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/lombok/core/configuration/CheckerFrameworkVersion.java b/src/core/lombok/core/configuration/CheckerFrameworkVersion.java index 68fc05a7..39d95071 100644 --- a/src/core/lombok/core/configuration/CheckerFrameworkVersion.java +++ b/src/core/lombok/core/configuration/CheckerFrameworkVersion.java @@ -83,4 +83,13 @@ public final class CheckerFrameworkVersion implements ConfigurationValueType { String s = (MAX_SUPPORTED / 1000) + "." + (MAX_SUPPORTED % 1000); return "major.minor (example: 2.9 - and no higher than " + s + ") or true or false"; } + + @Override public boolean equals(Object obj) { + if (!(obj instanceof CheckerFrameworkVersion)) return false; + return version == ((CheckerFrameworkVersion) obj).version; + } + + @Override public int hashCode() { + return version; + } } |