From 56602322d9c44b69017b345aaca5b3807fd5d427 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sun, 8 Nov 2009 14:52:32 +0100 Subject: Minor bug fixes and style edits. All these were found after running findbugs on the lombok sources. --- src/lombok/javac/handlers/HandleSynchronized.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lombok/javac') diff --git a/src/lombok/javac/handlers/HandleSynchronized.java b/src/lombok/javac/handlers/HandleSynchronized.java index b607ea72..c86d99c6 100644 --- a/src/lombok/javac/handlers/HandleSynchronized.java +++ b/src/lombok/javac/handlers/HandleSynchronized.java @@ -76,7 +76,7 @@ public class HandleSynchronized implements JavacAnnotationHandler if (fieldExists(lockName, methodNode) == MemberExistsResult.NOT_EXISTS) { if (!autoMake) { - annotationNode.addError("The field " + new String(lockName) + " does not exist."); + annotationNode.addError("The field " + lockName + " does not exist."); return true; } JCExpression objectType = chainDots(maker, methodNode, "java", "lang", "Object"); -- cgit