aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/HandleSynchronized.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-11-29 19:46:47 +0100
committerReinier Zwitserloot <reinier@tipit.to>2009-11-29 19:46:47 +0100
commit64f47685ca8fee174d87688e8c5d33de4c153c9b (patch)
treeab6c6fcfdbf648801256f78db829808eb1bb965d /src/core/lombok/javac/handlers/HandleSynchronized.java
parent96b7c8ed471745366378d5b7cec8890d16532dee (diff)
parenteb1a51588779ca55c9855651f9eefed9459f0874 (diff)
downloadlombok-64f47685ca8fee174d87688e8c5d33de4c153c9b.tar.gz
lombok-64f47685ca8fee174d87688e8c5d33de4c153c9b.tar.bz2
lombok-64f47685ca8fee174d87688e8c5d33de4c153c9b.zip
Merge branch 'master' into netbeans
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleSynchronized.java')
-rw-r--r--src/core/lombok/javac/handlers/HandleSynchronized.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/HandleSynchronized.java b/src/core/lombok/javac/handlers/HandleSynchronized.java
index eaa0ad6d..3602e74b 100644
--- a/src/core/lombok/javac/handlers/HandleSynchronized.java
+++ b/src/core/lombok/javac/handlers/HandleSynchronized.java
@@ -87,7 +87,7 @@ public class HandleSynchronized implements JavacAnnotationHandler<Synchronized>
JCNewArray newObjectArray = maker.NewArray(chainDots(maker, methodNode, "java", "lang", "Object"),
List.<JCExpression>of(maker.Literal(TypeTags.INT, 0)), null);
JCVariableDecl fieldDecl = maker.VarDef(
- maker.Modifiers(Flags.FINAL | (isStatic ? Flags.STATIC : 0)),
+ maker.Modifiers(Flags.PRIVATE | Flags.FINAL | (isStatic ? Flags.STATIC : 0)),
methodNode.toName(lockName), objectType, newObjectArray);
injectField(methodNode.up(), fieldDecl);
}