From 3041420ab9b4d7b70583b4e8b10d16612d00bb2a Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 26 Oct 2015 22:56:00 +0100 Subject: [fixes #950] A source file with just parameter @NonNull would not trigger delombok due to lack of ast.setChanged flagging --- src/core/lombok/javac/handlers/HandleNonNull.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core') 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 { List newList = tail.prepend(nullCheck); for (JCStatement stat : head) newList = newList.prepend(stat); declaration.body.stats = newList; + annotationNode.getAst().setChanged(); } public boolean isNullCheck(JCStatement stat) { -- cgit