aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/HandleGetter.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-07-07 21:41:47 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-07-07 21:49:47 +0200
commit85fec0dffa5df13c0cafc86ca762774ba2c4d951 (patch)
treec44f9ae2ee9feb22033ee0a37d1de06648172580 /src/core/lombok/javac/handlers/HandleGetter.java
parentb6a23a7d94ee4f01b38a0e6d7db120fb05be0d6c (diff)
downloadlombok-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.java4
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; */ {