aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-08-27 23:16:47 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-08-27 23:16:47 +0200
commit4e152f2f1485f904feb45ae614236d4aa4b6edc9 (patch)
treeaa7de35a215a5d7077e27e0ef4c1699e9c56779b /src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
parent0221e460b2e648b142284c6c462d5798f33a3ff7 (diff)
parentfe0da3f53f1e88b704e21463cc5fea3d998e394a (diff)
downloadlombok-4e152f2f1485f904feb45ae614236d4aa4b6edc9.tar.gz
lombok-4e152f2f1485f904feb45ae614236d4aa4b6edc9.tar.bz2
lombok-4e152f2f1485f904feb45ae614236d4aa4b6edc9.zip
Merge branch 'nonnull'
Conflicts: src/lombok/eclipse/handlers/HandleData.java src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java src/lombok/eclipse/handlers/HandleSetter.java src/lombok/javac/handlers/HandleData.java src/lombok/javac/handlers/HandleEqualsAndHashCode.java src/lombok/javac/handlers/HandleSetter.java
Diffstat (limited to 'src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java')
-rw-r--r--src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java b/src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
index b8916d46..1adbe781 100644
--- a/src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
+++ b/src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
@@ -154,19 +154,19 @@ public class HandleEqualsAndHashCode implements EclipseAnnotationHandler<EqualsA
return false;
}
- boolean isDirectDescendentOfObject = true;
+ boolean isDirectDescendantOfObject = true;
if ( typeDecl.superclass != null ) {
String p = typeDecl.superclass.toString();
- isDirectDescendentOfObject = p.equals("Object") || p.equals("java.lang.Object");
+ isDirectDescendantOfObject = p.equals("Object") || p.equals("java.lang.Object");
}
- if ( isDirectDescendentOfObject && callSuper ) {
+ if ( isDirectDescendantOfObject && callSuper ) {
errorNode.addError("Generating equals/hashCode with a supercall to java.lang.Object is pointless.");
return true;
}
- if ( !isDirectDescendentOfObject && !callSuper && implicit ) {
+ if ( !isDirectDescendantOfObject && !callSuper && implicit ) {
errorNode.addWarning("Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type.");
}