aboutsummaryrefslogtreecommitdiff
path: root/src/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-07-26 09:28:38 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-07-26 09:28:38 +0200
commitdfbc6a79e79c1e070ad9d661a468199cffffddc1 (patch)
treeed168fe09e266fae7c54975ff3119a1b2ef7dfe4 /src/lombok
parenta9d29896887ee35903bcb847eb4307637801bcc2 (diff)
downloadlombok-dfbc6a79e79c1e070ad9d661a468199cffffddc1.tar.gz
lombok-dfbc6a79e79c1e070ad9d661a468199cffffddc1.tar.bz2
lombok-dfbc6a79e79c1e070ad9d661a468199cffffddc1.zip
[TRIVIAL]
Diffstat (limited to 'src/lombok')
-rw-r--r--src/lombok/eclipse/handlers/HandleGetter.java2
-rw-r--r--src/lombok/javac/handlers/HandleGetter.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lombok/eclipse/handlers/HandleGetter.java b/src/lombok/eclipse/handlers/HandleGetter.java
index efb37c35..652ad01f 100644
--- a/src/lombok/eclipse/handlers/HandleGetter.java
+++ b/src/lombok/eclipse/handlers/HandleGetter.java
@@ -101,7 +101,7 @@ public class HandleGetter implements EclipseAnnotationHandler<Getter> {
case EXISTS_BY_USER:
if ( whineIfExists ) {
String altNameExpl = "";
- if ( !altName.equals(getterName) ) altNameExpl = String.format("(%s)", altName);
+ if ( !altName.equals(getterName) ) altNameExpl = String.format(" (%s)", altName);
errorNode.addWarning(
String.format("Not generating %s(): A method with that name already exists%s", getterName, altNameExpl));
}
diff --git a/src/lombok/javac/handlers/HandleGetter.java b/src/lombok/javac/handlers/HandleGetter.java
index 81915169..3d3227e4 100644
--- a/src/lombok/javac/handlers/HandleGetter.java
+++ b/src/lombok/javac/handlers/HandleGetter.java
@@ -97,7 +97,7 @@ public class HandleGetter implements JavacAnnotationHandler<Getter> {
case EXISTS_BY_USER:
if ( whineIfExists ) {
String altNameExpl = "";
- if ( !altName.equals(methodName) ) altNameExpl = String.format("(%s)", altName);
+ if ( !altName.equals(methodName) ) altNameExpl = String.format(" (%s)", altName);
errorNode.addWarning(
String.format("Not generating %s(): A method with that name already exists%s", methodName, altNameExpl));
}