diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-09-12 23:17:05 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-09-12 23:17:05 +0200 |
commit | 538d2bd690b6288728cc8516bcb3c8093bf2acc6 (patch) | |
tree | 5e84527bd8b248307a39573ae5b0efde37f0e1b4 /src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java | |
parent | 5cceda7de97d1c761bb979433a5ae793668d1110 (diff) | |
download | lombok-538d2bd690b6288728cc8516bcb3c8093bf2acc6.tar.gz lombok-538d2bd690b6288728cc8516bcb3c8093bf2acc6.tar.bz2 lombok-538d2bd690b6288728cc8516bcb3c8093bf2acc6.zip |
Refactored how the type resolver deals with aliases; fixes star import issues.
Diffstat (limited to 'src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java')
-rwxr-xr-x | src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java b/src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java index da0bf471..483431cc 100755 --- a/src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java +++ b/src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java @@ -109,7 +109,9 @@ public class EclipseSingularsRecipes { } public String toQualified(String typeReference) { - return singularizableTypes.toQualified(typeReference); + List<String> q = singularizableTypes.toQualifieds(typeReference); + if (q.isEmpty()) return null; + return q.get(0); } public EclipseSingularizer getSingularizer(String fqn) { |