aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2020-01-15 23:21:52 +0100
committerRoel Spilker <r.spilker@gmail.com>2020-01-20 13:57:31 +0100
commit660a056240734659fe70fc9381024896becd5fba (patch)
treed7ae1b3392b9550d59dec4d267d30e1231b547e3 /src/core/lombok
parentcccbdafa4be42de9fa6b47a9769b7b8b9f92e223 (diff)
downloadlombok-660a056240734659fe70fc9381024896becd5fba.tar.gz
lombok-660a056240734659fe70fc9381024896becd5fba.tar.bz2
lombok-660a056240734659fe70fc9381024896becd5fba.zip
Implement E&HQ in CheckerFrameworkVersion because it is a ConfigurationValueType and might be listed.
Diffstat (limited to 'src/core/lombok')
-rw-r--r--src/core/lombok/core/configuration/CheckerFrameworkVersion.java9
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;
+ }
}