diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-06-02 05:59:34 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-06-02 06:00:14 +0200 |
commit | ee40c8542d77ea2337706e5ace9de43fafd1b85f (patch) | |
tree | ac08bd216c13524c88ba3a740a636486db23968b /src/core/lombok | |
parent | 850c3eaf07cd4beb2276b5e10296132b6ed3d7a6 (diff) | |
download | lombok-ee40c8542d77ea2337706e5ace9de43fafd1b85f.tar.gz lombok-ee40c8542d77ea2337706e5ace9de43fafd1b85f.tar.bz2 lombok-ee40c8542d77ea2337706e5ace9de43fafd1b85f.zip |
Trivial fixes.
Diffstat (limited to 'src/core/lombok')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleSynchronized.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleSynchronized.java b/src/core/lombok/eclipse/handlers/HandleSynchronized.java index ace1c6dc..ac751aa5 100644 --- a/src/core/lombok/eclipse/handlers/HandleSynchronized.java +++ b/src/core/lombok/eclipse/handlers/HandleSynchronized.java @@ -82,7 +82,7 @@ public class HandleSynchronized implements EclipseAnnotationHandler<Synchronized if (fieldExists(new String(lockName), methodNode) == MemberExistsResult.NOT_EXISTS) { if (!autoMake) { - annotationNode.addError("The field " + new String(lockName) + " does not exist."); + annotationNode.addError(String.format("The field %s does not exist.", new String(lockName))); return; } FieldDeclaration fieldDecl = new FieldDeclaration(lockName, 0, -1); @@ -91,7 +91,7 @@ public class HandleSynchronized implements EclipseAnnotationHandler<Synchronized fieldDecl.modifiers = (method.isStatic() ? Modifier.STATIC : 0) | Modifier.FINAL | Modifier.PRIVATE; - //We use 'new Object[0];' because quite unlike 'new Object();', empty arrays *ARE* serializable! + //We use 'new Object[0];' because unlike 'new Object();', empty arrays *ARE* serializable! ArrayAllocationExpression arrayAlloc = new ArrayAllocationExpression(); Eclipse.setGeneratedBy(arrayAlloc, source); arrayAlloc.dimensions = new Expression[] { new IntLiteral(new char[] { '0' }, 0, 0) }; |