mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 02:16:18 +00:00
[TRIVIAL]
This commit is contained in:
1 parent
a9d2989688
commit
dfbc6a79e7
2 files changed
+2
-2
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user