aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/HandleSynchronized.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-12-11 22:00:12 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-12-11 22:40:48 +0100
commita19b99cba2fdee4495bafce558a28af49e8e36f0 (patch)
tree73f77fdae6f5e1ba3407157fec1273f51e5532b6 /src/core/lombok/javac/handlers/HandleSynchronized.java
parent9ac86c8a234f2ecd280f27f0dbda15440b1bf155 (diff)
downloadlombok-a19b99cba2fdee4495bafce558a28af49e8e36f0.tar.gz
lombok-a19b99cba2fdee4495bafce558a28af49e8e36f0.tar.bz2
lombok-a19b99cba2fdee4495bafce558a28af49e8e36f0.zip
Added complete support for delombok's 'pretty' format options; covering all of the issue #608.
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleSynchronized.java')
-rw-r--r--src/core/lombok/javac/handlers/HandleSynchronized.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/javac/handlers/HandleSynchronized.java b/src/core/lombok/javac/handlers/HandleSynchronized.java
index 9de2c809..13b8ffcb 100644
--- a/src/core/lombok/javac/handlers/HandleSynchronized.java
+++ b/src/core/lombok/javac/handlers/HandleSynchronized.java
@@ -88,9 +88,9 @@ public class HandleSynchronized extends JavacAnnotationHandler<Synchronized> {
annotationNode.addError("The field " + lockName + " does not exist.");
return;
}
- JCExpression objectType = chainDots(methodNode, ast.pos, "java", "lang", "Object");
+ JCExpression objectType = genJavaLangTypeRef(methodNode, ast.pos, "Object");
//We use 'new Object[0];' because unlike 'new Object();', empty arrays *ARE* serializable!
- JCNewArray newObjectArray = maker.NewArray(chainDots(methodNode, ast.pos, "java", "lang", "Object"),
+ JCNewArray newObjectArray = maker.NewArray(genJavaLangTypeRef(methodNode, ast.pos, "Object"),
List.<JCExpression>of(maker.Literal(CTC_INT, 0)), null);
JCVariableDecl fieldDecl = recursiveSetGeneratedBy(maker.VarDef(
maker.Modifiers(Flags.PRIVATE | Flags.FINAL | (isStatic ? Flags.STATIC : 0)),