aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/HandleVal.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/HandleVal.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/HandleVal.java')
-rw-r--r--src/core/lombok/javac/handlers/HandleVal.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/javac/handlers/HandleVal.java b/src/core/lombok/javac/handlers/HandleVal.java
index 9cd8400e..8dc8e865 100644
--- a/src/core/lombok/javac/handlers/HandleVal.java
+++ b/src/core/lombok/javac/handlers/HandleVal.java
@@ -84,7 +84,7 @@ public class HandleVal extends JavacASTAdapter {
local.mods.flags |= Flags.FINAL;
if (!localNode.shouldDeleteLombokAnnotations()) {
- JCAnnotation valAnnotation = recursiveSetGeneratedBy(localNode.getTreeMaker().Annotation(local.vartype, List.<JCExpression>nil()), source);
+ JCAnnotation valAnnotation = recursiveSetGeneratedBy(localNode.getTreeMaker().Annotation(local.vartype, List.<JCExpression>nil()), source, localNode.getContext());
local.mods.annotations = local.mods.annotations == null ? List.of(valAnnotation) : local.mods.annotations.append(valAnnotation);
}
@@ -138,7 +138,7 @@ public class HandleVal extends JavacASTAdapter {
local.vartype = JavacResolution.createJavaLangObject(localNode.getAst());
throw e;
} finally {
- recursiveSetGeneratedBy(local.vartype, source);
+ recursiveSetGeneratedBy(local.vartype, source, localNode.getContext());
}
}
}