From d1157b3b8a4a317de46343d5409b9f52cfacfe43 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 12 Jun 2009 16:57:40 +0200 Subject: Whoops. Bugfix for enums. They get parsed correctly now! --- src/lombok/eclipse/HandlerLibrary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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."); -- cgit