Whoops. Bugfix for enums. They get parsed correctly now!

This commit is contained in:
Reinier Zwitserloot committed 2009-06-12 16:57:40 +02:00
1 parent 6372983000
commit d1157b3b8a
1 file changed
+1 -1
+1 -1
View File
@@ -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.");