diff options
author | jvanderhel <Jappe.vanderhel@gmail.com> | 2011-11-29 21:20:14 +0100 |
---|---|---|
committer | jvanderhel <Jappe.vanderhel@gmail.com> | 2011-11-29 21:20:14 +0100 |
commit | 6a13685d5c33c9c1308d963c462e5c9733ec6541 (patch) | |
tree | ad6b7db3ea04c5a493bee3bc118a7b26d0a6cb08 | |
parent | c502ec24bba580181631146fa5cdee16ffe9ceaf (diff) | |
download | lombok-6a13685d5c33c9c1308d963c462e5c9733ec6541.tar.gz lombok-6a13685d5c33c9c1308d963c462e5c9733ec6541.tar.bz2 lombok-6a13685d5c33c9c1308d963c462e5c9733ec6541.zip |
Added missing setGeneratedBy on TypeReference (prevented a rename of class with @Data/@EqualsAndHashCode on it using Alt+Shift+R)
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java index 3c41f834..d4c63da3 100644 --- a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java +++ b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java @@ -478,7 +478,8 @@ public class HandleEqualsAndHashCode extends EclipseAnnotationHandler<EqualsAndH setGeneratedBy(oRef, source); TypeReference typeReference = createTypeReference(type, p); - + setGeneratedBy(typeReference, source); + InstanceOfExpression instanceOf = new InstanceOfExpression(oRef, typeReference); instanceOf.sourceStart = pS; instanceOf.sourceEnd = pE; setGeneratedBy(instanceOf, source); @@ -705,7 +706,6 @@ public class HandleEqualsAndHashCode extends EclipseAnnotationHandler<EqualsAndH setGeneratedBy(otherRef, source); TypeReference typeReference = createTypeReference(type, p); - setGeneratedBy(typeReference, source); InstanceOfExpression instanceOf = new InstanceOfExpression(otherRef, typeReference); |