aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-08-27 23:35:05 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-08-27 23:35:05 +0200
commitd16775032b638789f998f3f362b7ed7d4f5098ae (patch)
tree5c48ae279a1db33c86b761b7637f73e1c358630b /src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
parent4e152f2f1485f904feb45ae614236d4aa4b6edc9 (diff)
downloadlombok-d16775032b638789f998f3f362b7ed7d4f5098ae.tar.gz
lombok-d16775032b638789f998f3f362b7ed7d4f5098ae.tar.bz2
lombok-d16775032b638789f998f3f362b7ed7d4f5098ae.zip
Set the source positions in eclipse of copied over annotations (used in @NonNull/@Nullable and getter/setter/constructor generation) to 0, as eclipse mysteriously fails for annotations copied WITH source positions, but only on methods (which happens for @Getter).
Diffstat (limited to 'src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java')
-rw-r--r--src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java b/src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
index 1adbe781..d4435fce 100644
--- a/src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
+++ b/src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
@@ -223,7 +223,7 @@ public class HandleEqualsAndHashCode implements EclipseAnnotationHandler<EqualsA
method.modifiers = PKG.toModifier(AccessLevel.PUBLIC);
method.returnType = TypeReference.baseTypeReference(TypeIds.T_int, 0);
method.annotations = new Annotation[] {
- new MarkerAnnotation(new QualifiedTypeReference(TypeConstants.JAVA_LANG_OVERRIDE, new long[] { 0, 0, 0}), 0)
+ new MarkerAnnotation(new QualifiedTypeReference(TypeConstants.JAVA_LANG_OVERRIDE, new long[] {0, 0, 0}), 0)
};
method.selector = "hashCode".toCharArray();
method.thrownExceptions = null;