mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 14:16:11 +00:00
[fixes #950] A source file with just parameter @NonNull would not trigger delombok due to lack of ast.setChanged flagging
This commit is contained in:
1 parent
30cfbcf9e4
commit
3041420ab9
1 file changed
+1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user