diff options
author | Roel Spilker <r.spilker@gmail.com> | 2013-12-03 21:27:04 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2013-12-03 21:27:04 +0100 |
commit | 083817732242cce815b9d78659e68520abdb5021 (patch) | |
tree | c4d134133dddac3b0f8b0fbc327e50cd9f388029 /src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java | |
parent | 78b2d6919e35887940f9f11b6ae1731245739b83 (diff) | |
download | lombok-083817732242cce815b9d78659e68520abdb5021.tar.gz lombok-083817732242cce815b9d78659e68520abdb5021.tar.bz2 lombok-083817732242cce815b9d78659e68520abdb5021.zip |
Fix for Issue #591: v1.12.2 doesn't well with netbeans.
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java b/src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java index 0f8161e1..8e8494d0 100644 --- a/src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java +++ b/src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java @@ -317,7 +317,7 @@ public class HandleEqualsAndHashCode extends JavacAnnotationHandler<EqualsAndHas JCBlock body = maker.Block(0, statements.toList()); return recursiveSetGeneratedBy(maker.MethodDef(mods, typeNode.toName("hashCode"), returnType, - List.<JCTypeParameter>nil(), List.<JCVariableDecl>nil(), List.<JCExpression>nil(), body, null), source); + List.<JCTypeParameter>nil(), List.<JCVariableDecl>nil(), List.<JCExpression>nil(), body, null), source, typeNode.getContext()); } private JCExpressionStatement createResultCalculation(JavacNode typeNode, JCExpression expr) { @@ -486,7 +486,7 @@ public class HandleEqualsAndHashCode extends JavacAnnotationHandler<EqualsAndHas } JCBlock body = maker.Block(0, statements.toList()); - return recursiveSetGeneratedBy(maker.MethodDef(mods, typeNode.toName("equals"), returnType, List.<JCTypeParameter>nil(), params, List.<JCExpression>nil(), body, null), source); + return recursiveSetGeneratedBy(maker.MethodDef(mods, typeNode.toName("equals"), returnType, List.<JCTypeParameter>nil(), params, List.<JCExpression>nil(), body, null), source, typeNode.getContext()); } private JCMethodDecl createCanEqual(JavacNode typeNode, JCTree source) { @@ -506,7 +506,7 @@ public class HandleEqualsAndHashCode extends JavacAnnotationHandler<EqualsAndHas JCBlock body = maker.Block(0, List.<JCStatement>of( maker.Return(maker.TypeTest(maker.Ident(otherName), createTypeReference(typeNode))))); - return recursiveSetGeneratedBy(maker.MethodDef(mods, canEqualName, returnType, List.<JCTypeParameter>nil(), params, List.<JCExpression>nil(), body, null), source); + return recursiveSetGeneratedBy(maker.MethodDef(mods, canEqualName, returnType, List.<JCTypeParameter>nil(), params, List.<JCExpression>nil(), body, null), source, typeNode.getContext()); } private JCStatement generateCompareFloatOrDouble(JCExpression thisDotField, JCExpression otherDotField, |