aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2015-11-23 03:29:27 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2015-11-23 03:29:27 +0100
commit5029fd041ddf0e3654c7f3d5106cf8cbb90b5243 (patch)
treee718e90001c605a94a97750765a4840abf3e0450 /src/core/lombok
parent728ae6421dd03bc78e37c0eb5d860f932b5fff2c (diff)
downloadlombok-5029fd041ddf0e3654c7f3d5106cf8cbb90b5243.tar.gz
lombok-5029fd041ddf0e3654c7f3d5106cf8cbb90b5243.tar.bz2
lombok-5029fd041ddf0e3654c7f3d5106cf8cbb90b5243.zip
[Fixes #949] accessor prefixes messed up auto-singular generation.
Diffstat (limited to 'src/core/lombok')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleBuilder.java2
-rw-r--r--src/core/lombok/javac/handlers/HandleBuilder.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleBuilder.java b/src/core/lombok/eclipse/handlers/HandleBuilder.java
index be14653a..4e0c4218 100644
--- a/src/core/lombok/eclipse/handlers/HandleBuilder.java
+++ b/src/core/lombok/eclipse/handlers/HandleBuilder.java
@@ -711,7 +711,7 @@ public class HandleBuilder extends EclipseAnnotationHandler<Builder> {
node.addError("The singular must be specified explicitly (e.g. @Singular(\"task\")) because auto singularization is disabled.");
explicitSingular = new String(pluralName);
} else {
- explicitSingular = autoSingularize(node.getName());
+ explicitSingular = autoSingularize(new String(pluralName));
if (explicitSingular == null) {
node.addError("Can't singularize this name; please specify the singular explicitly (i.e. @Singular(\"sheep\"))");
explicitSingular = new String(pluralName);
diff --git a/src/core/lombok/javac/handlers/HandleBuilder.java b/src/core/lombok/javac/handlers/HandleBuilder.java
index efe40da3..b83e3d5f 100644
--- a/src/core/lombok/javac/handlers/HandleBuilder.java
+++ b/src/core/lombok/javac/handlers/HandleBuilder.java
@@ -666,7 +666,7 @@ public class HandleBuilder extends JavacAnnotationHandler<Builder> {
node.addError("The singular must be specified explicitly (e.g. @Singular(\"task\")) because auto singularization is disabled.");
explicitSingular = pluralName.toString();
} else {
- explicitSingular = autoSingularize(node.getName());
+ explicitSingular = autoSingularize(pluralName.toString());
if (explicitSingular == null) {
node.addError("Can't singularize this name; please specify the singular explicitly (i.e. @Singular(\"sheep\"))");
explicitSingular = pluralName.toString();