diff options
author | Roel Spilker <r.spilker@gmail.com> | 2017-05-16 00:35:16 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2017-05-16 00:35:16 +0200 |
commit | 7d42d8c6201f640c8f7112dc2132908ace12fdc7 (patch) | |
tree | d5eb1ccc2d263118cd1a9c57c009ceb7c3a4942a /src/core/lombok/javac/handlers/HandleBuilder.java | |
parent | 6f4effe84a530a9bcae4e81f853e139c10b42994 (diff) | |
download | lombok-7d42d8c6201f640c8f7112dc2132908ace12fdc7.tar.gz lombok-7d42d8c6201f640c8f7112dc2132908ace12fdc7.tar.bz2 lombok-7d42d8c6201f640c8f7112dc2132908ace12fdc7.zip |
[i1351] Warning on initialized non-final field in Builder was wrong
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleBuilder.java')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleBuilder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/HandleBuilder.java b/src/core/lombok/javac/handlers/HandleBuilder.java index 7ed8b217..157828a0 100644 --- a/src/core/lombok/javac/handlers/HandleBuilder.java +++ b/src/core/lombok/javac/handlers/HandleBuilder.java @@ -165,7 +165,7 @@ public class HandleBuilder extends JavacAnnotationHandler<Builder> { if (fd.init != null && isDefault == null) { if (isFinal) continue; - fieldNode.addWarning("@Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. if it is not supposed to be settable during building, add @Builder.Constant."); + fieldNode.addWarning("@Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final."); } if (isDefault != null) { |