aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/HandleToString.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2013-12-03 21:27:04 +0100
committerRoel Spilker <r.spilker@gmail.com>2013-12-03 21:27:04 +0100
commit083817732242cce815b9d78659e68520abdb5021 (patch)
treec4d134133dddac3b0f8b0fbc327e50cd9f388029 /src/core/lombok/javac/handlers/HandleToString.java
parent78b2d6919e35887940f9f11b6ae1731245739b83 (diff)
downloadlombok-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/HandleToString.java')
-rw-r--r--src/core/lombok/javac/handlers/HandleToString.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/HandleToString.java b/src/core/lombok/javac/handlers/HandleToString.java
index 9bd5b920..19f91fe5 100644
--- a/src/core/lombok/javac/handlers/HandleToString.java
+++ b/src/core/lombok/javac/handlers/HandleToString.java
@@ -240,7 +240,7 @@ public class HandleToString extends JavacAnnotationHandler<ToString> {
JCBlock body = maker.Block(0, List.of(returnStatement));
return recursiveSetGeneratedBy(maker.MethodDef(mods, typeNode.toName("toString"), 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 static String getTypeName(JavacNode typeNode) {