aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2015-10-26 22:56:00 +0100
committerRoel Spilker <r.spilker@gmail.com>2015-10-26 22:56:10 +0100
commit3041420ab9b4d7b70583b4e8b10d16612d00bb2a (patch)
tree86c9b84b0fa99ececb0be95478b2146d51ecfe61 /src/core/lombok
parent30cfbcf9e42f9f997817ad0d097b71655f9a8485 (diff)
downloadlombok-3041420ab9b4d7b70583b4e8b10d16612d00bb2a.tar.gz
lombok-3041420ab9b4d7b70583b4e8b10d16612d00bb2a.tar.bz2
lombok-3041420ab9b4d7b70583b4e8b10d16612d00bb2a.zip
[fixes #950] A source file with just parameter @NonNull would not trigger delombok due to lack of ast.setChanged flagging
Diffstat (limited to 'src/core/lombok')
-rw-r--r--src/core/lombok/javac/handlers/HandleNonNull.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lombok/javac/handlers/HandleNonNull.java b/src/core/lombok/javac/handlers/HandleNonNull.java
index ea6b39da..81aa1525 100644
--- a/src/core/lombok/javac/handlers/HandleNonNull.java
+++ b/src/core/lombok/javac/handlers/HandleNonNull.java
@@ -141,6 +141,7 @@ public class HandleNonNull extends JavacAnnotationHandler<NonNull> {
List<JCStatement> newList = tail.prepend(nullCheck);
for (JCStatement stat : head) newList = newList.prepend(stat);
declaration.body.stats = newList;
+ annotationNode.getAst().setChanged();
}
public boolean isNullCheck(JCStatement stat) {