aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers/HandleSynchronized.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2011-06-02 05:59:34 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2011-06-02 06:00:14 +0200
commitee40c8542d77ea2337706e5ace9de43fafd1b85f (patch)
treeac08bd216c13524c88ba3a740a636486db23968b /src/core/lombok/eclipse/handlers/HandleSynchronized.java
parent850c3eaf07cd4beb2276b5e10296132b6ed3d7a6 (diff)
downloadlombok-ee40c8542d77ea2337706e5ace9de43fafd1b85f.tar.gz
lombok-ee40c8542d77ea2337706e5ace9de43fafd1b85f.tar.bz2
lombok-ee40c8542d77ea2337706e5ace9de43fafd1b85f.zip
Trivial fixes.
Diffstat (limited to 'src/core/lombok/eclipse/handlers/HandleSynchronized.java')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleSynchronized.java4
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) };