diff options
author | Roel Spilker <r.spilker@gmail.com> | 2009-11-29 18:33:38 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2009-11-29 18:33:38 +0100 |
commit | eb1a51588779ca55c9855651f9eefed9459f0874 (patch) | |
tree | b488357c9101f70ab465e513614eea8a75c3d93f /src | |
parent | 8d9b4fdaca4c1f84385262d84c0c8db7cc222b1a (diff) | |
download | lombok-eb1a51588779ca55c9855651f9eefed9459f0874.tar.gz lombok-eb1a51588779ca55c9855651f9eefed9459f0874.tar.bz2 lombok-eb1a51588779ca55c9855651f9eefed9459f0874.zip |
Make lock fields private
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleSynchronized.java | 2 |
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); } |