diff options
author | Bulgakov Alexander <buls@yandex.ru> | 2019-05-08 23:34:37 +0300 |
---|---|---|
committer | Bulgakov Alexander <buls@yandex.ru> | 2019-05-08 23:34:37 +0300 |
commit | 1fec035aa546b7a033acb67cf4f7c1afb8a79f52 (patch) | |
tree | 7298ae1403107a153f4b6ea5b065018a86fc2d86 /src/core/lombok/eclipse/handlers | |
parent | 8f8cbae631ff2e7091a2a9b70339b778177122cc (diff) | |
download | lombok-1fec035aa546b7a033acb67cf4f7c1afb8a79f52.tar.gz lombok-1fec035aa546b7a033acb67cf4f7c1afb8a79f52.tar.bz2 lombok-1fec035aa546b7a033acb67cf4f7c1afb8a79f52.zip |
#1976. [@val] improved raw generic type inference by eclipse compiler.
Diffstat (limited to 'src/core/lombok/eclipse/handlers')
-rw-r--r-- | src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java index 1e791341..257f5cec 100644 --- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java +++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java @@ -114,6 +114,7 @@ import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; import org.eclipse.jdt.internal.compiler.lookup.Binding; import org.eclipse.jdt.internal.compiler.lookup.CaptureBinding; import org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding; +import org.eclipse.jdt.internal.compiler.lookup.RawTypeBinding; import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding; import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; import org.eclipse.jdt.internal.compiler.lookup.TypeConstants; @@ -965,7 +966,7 @@ public class EclipseHandlerUtil { // Finally, add however many nullTypeArgument[] arrays as that are missing, inverse the list, toArray it, and use that as PTR's typeArgument argument. List<TypeReference[]> params = new ArrayList<TypeReference[]>(); - /* Calculate generics */ { + /* Calculate generics */ if(!(binding instanceof RawTypeBinding)) { TypeBinding b = binding; while (true) { boolean isFinalStop = b.isLocalType() || !b.isMemberType() || b.enclosingType() == null; |