diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-07-07 21:41:47 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-07-07 21:49:47 +0200 |
commit | 85fec0dffa5df13c0cafc86ca762774ba2c4d951 (patch) | |
tree | c44f9ae2ee9feb22033ee0a37d1de06648172580 /src/core/lombok/javac/handlers/HandleGetter.java | |
parent | b6a23a7d94ee4f01b38a0e6d7db120fb05be0d6c (diff) | |
download | lombok-85fec0dffa5df13c0cafc86ca762774ba2c4d951.tar.gz lombok-85fec0dffa5df13c0cafc86ca762774ba2c4d951.tar.bz2 lombok-85fec0dffa5df13c0cafc86ca762774ba2c4d951.zip |
eclipse support for the new @Getter(lazy=true) desugaring.
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleGetter.java')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleGetter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/javac/handlers/HandleGetter.java b/src/core/lombok/javac/handlers/HandleGetter.java index 0385a235..413404c0 100644 --- a/src/core/lombok/javac/handlers/HandleGetter.java +++ b/src/core/lombok/javac/handlers/HandleGetter.java @@ -308,7 +308,7 @@ public class HandleGetter extends JavacAnnotationHandler<Getter> { synchronized (this.fieldName) { value = this.fieldName.get(); if (value == null) { - RawValueType actualValue = INITIALIZER_EXPRESSION; + final RawValueType actualValue = INITIALIZER_EXPRESSION; [IF PRIMITIVE] value = actualValue; [ELSE] @@ -361,7 +361,7 @@ public class HandleGetter extends JavacAnnotationHandler<Getter> { /* if (value == null) { */ { ListBuffer<JCStatement> innerIfStatements = ListBuffer.lb(); - /* RawValueType actualValue = INITIALIZER_EXPRESSION; */ { + /* final RawValueType actualValue = INITIALIZER_EXPRESSION; */ { innerIfStatements.append(maker.VarDef(maker.Modifiers(Flags.FINAL), actualValueName, copyOfRawFieldType, field.init)); } /* [IF primitive] value = actualValue; */ { |