aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/eclipse
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-06-12 16:57:40 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-06-12 16:57:40 +0200
commitd1157b3b8a4a317de46343d5409b9f52cfacfe43 (patch)
tree8a3561e7f6b173972f4389abb23eb13152c79462 /src/lombok/eclipse
parent637298300039a4b943e49c654cb4d2b26161ba60 (diff)
downloadlombok-d1157b3b8a4a317de46343d5409b9f52cfacfe43.tar.gz
lombok-d1157b3b8a4a317de46343d5409b9f52cfacfe43.tar.bz2
lombok-d1157b3b8a4a317de46343d5409b9f52cfacfe43.zip
Whoops. Bugfix for enums. They get parsed correctly now!
Diffstat (limited to 'src/lombok/eclipse')
-rw-r--r--src/lombok/eclipse/HandlerLibrary.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lombok/eclipse/HandlerLibrary.java b/src/lombok/eclipse/HandlerLibrary.java
index 01b2d021..85711012 100644
--- a/src/lombok/eclipse/HandlerLibrary.java
+++ b/src/lombok/eclipse/HandlerLibrary.java
@@ -102,7 +102,7 @@ public class HandlerLibrary {
String s = null;
if ( e instanceof SingleNameReference ) s = new String(((SingleNameReference)e).token);
else if ( e instanceof QualifiedNameReference ) s = str(((QualifiedNameReference)e).tokens);
- if ( Enum.class.isAssignableFrom(type) ) toEnum(type, s);
+ if ( Enum.class.isAssignableFrom(type) ) return toEnum(type, s);
throw new EnumDecodeFail("Lombok annotations must contain literals only.");
} else {
throw new EnumDecodeFail("Lombok could not decode this annotation parameter.");