diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-08-13 00:12:41 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-08-13 00:12:41 +0200 |
commit | 5f511da0916450edfef1a1254907e5c29ce55dcd (patch) | |
tree | 587d341c17ccbfa6c237d7ebfee95a55e7dba173 /src/core/lombok/javac/handlers/HandleFieldDefaults.java | |
parent | 6e25b00acec26c770236d347a879a899c5c930db (diff) | |
download | lombok-5f511da0916450edfef1a1254907e5c29ce55dcd.tar.gz lombok-5f511da0916450edfef1a1254907e5c29ce55dcd.tar.bz2 lombok-5f511da0916450edfef1a1254907e5c29ce55dcd.zip |
FieldDefaults (and Value) did not call .rebuild() after changing modifiers. This also meant delombok would not emit the changed code if that's all that changed, because it thought nothing changed.
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleFieldDefaults.java')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleFieldDefaults.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lombok/javac/handlers/HandleFieldDefaults.java b/src/core/lombok/javac/handlers/HandleFieldDefaults.java index c0829172..d32446c3 100644 --- a/src/core/lombok/javac/handlers/HandleFieldDefaults.java +++ b/src/core/lombok/javac/handlers/HandleFieldDefaults.java @@ -91,6 +91,8 @@ public class HandleFieldDefaults extends JavacAnnotationHandler<FieldDefaults> { field.mods.flags |= Flags.FINAL; } } + + fieldNode.rebuild(); } @Override public void handle(AnnotationValues<FieldDefaults> annotation, JCAnnotation ast, JavacNode annotationNode) { |