diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-11-08 14:52:32 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-11-08 14:52:32 +0100 |
commit | 56602322d9c44b69017b345aaca5b3807fd5d427 (patch) | |
tree | a1e92bf008b76aa16c52985e7702cd283e383a4a /src/lombok/javac/handlers | |
parent | e14e8c3df3d7baa700a048b83e430db5c76ca410 (diff) | |
download | lombok-56602322d9c44b69017b345aaca5b3807fd5d427.tar.gz lombok-56602322d9c44b69017b345aaca5b3807fd5d427.tar.bz2 lombok-56602322d9c44b69017b345aaca5b3807fd5d427.zip |
Minor bug fixes and style edits. All these were found after running findbugs on the lombok sources.
Diffstat (limited to 'src/lombok/javac/handlers')
-rw-r--r-- | src/lombok/javac/handlers/HandleSynchronized.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<Synchronized> 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"); |