mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 04:16:19 +00:00
Whoops. Bugfix for enums. They get parsed correctly now!
This commit is contained in:
1 parent
6372983000
commit
d1157b3b8a
1 file changed
+1
-1
@@ -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.");
|
||||
|
||||
Reference in new issue
Block a user