diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-04-30 23:26:37 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-05-01 00:08:52 +0200 |
commit | 428edaa1a5b749b084a676ad064358c4d0742c21 (patch) | |
tree | 827799c81a44b73600a6059834f73b3349ccada0 | |
parent | 4cfb4b37ad16cc21f23e3620538893e36aa33eae (diff) | |
download | lombok-428edaa1a5b749b084a676ad064358c4d0742c21.tar.gz lombok-428edaa1a5b749b084a676ad064358c4d0742c21.tar.bz2 lombok-428edaa1a5b749b084a676ad064358c4d0742c21.zip |
bugfix for errors with ecj8 and builder.
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleBuilder.java | 4 |
1 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 59540d67..64e01c6e 100644 --- a/src/core/lombok/eclipse/handlers/HandleBuilder.java +++ b/src/core/lombok/eclipse/handlers/HandleBuilder.java @@ -52,7 +52,7 @@ import org.eclipse.jdt.internal.compiler.ast.TypeParameter; import org.eclipse.jdt.internal.compiler.ast.TypeReference; import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; import org.eclipse.jdt.internal.compiler.lookup.ClassScope; -import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; +import org.eclipse.jdt.internal.compiler.lookup.TypeConstants; import org.mangosdk.spi.ProviderFor; import lombok.AccessLevel; @@ -289,7 +289,7 @@ public class HandleBuilder extends EclipseAnnotationHandler<Builder> { invoke.typeArguments = trs; } invoke.arguments = assigns.isEmpty() ? null : assigns.toArray(new Expression[assigns.size()]); - if (returnType instanceof SingleTypeReference && Arrays.equals(TypeBinding.VOID.simpleName, ((SingleTypeReference) returnType).token)) { + if (returnType instanceof SingleTypeReference && Arrays.equals(TypeConstants.VOID, ((SingleTypeReference) returnType).token)) { statement = invoke; } else { statement = new ReturnStatement(invoke, (int)(p >> 32), (int)p); |