aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse
diff options
context:
space:
mode:
authorAndre Brait <andrebrait@gmail.com>2020-07-14 12:25:25 +0200
committerRoel Spilker <r.spilker@gmail.com>2020-09-24 22:25:15 +0200
commitc91a7dc8cac69f7324d38057206d2d027a2f22ac (patch)
treea897542235437b719b3914acd47594b5d1b78cba /src/core/lombok/eclipse
parenta4866a8d23466813d30bf9102ba26cb3fecebc47 (diff)
downloadlombok-c91a7dc8cac69f7324d38057206d2d027a2f22ac.tar.gz
lombok-c91a7dc8cac69f7324d38057206d2d027a2f22ac.tar.bz2
lombok-c91a7dc8cac69f7324d38057206d2d027a2f22ac.zip
Undo unnecessary change, add TODO
Diffstat (limited to 'src/core/lombok/eclipse')
-rwxr-xr-xsrc/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
index 4c5f3083..cf735dee 100755
--- a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
+++ b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
@@ -272,6 +272,7 @@ public class HandleEqualsAndHashCode extends EclipseAnnotationHandler<EqualsAndH
method.returnType = TypeReference.baseTypeReference(TypeIds.T_int, 0);
setGeneratedBy(method.returnType, source);
Annotation overrideAnnotation = makeMarkerAnnotation(TypeConstants.JAVA_LANG_OVERRIDE, source);
+ // TODO: maybe not add this annotation if cacheHashCode is true because we *do* modify a field
if (getCheckerFrameworkVersion(type).generateSideEffectFree()) {
method.annotations = new Annotation[] { overrideAnnotation, generateNamedAnnotation(source, CheckerFrameworkVersion.NAME__SIDE_EFFECT_FREE) };
} else {