From 34a8a4a080e301f5490d273f1a3526902f864d9b Mon Sep 17 00:00:00 2001 From: peichhorn Date: Sat, 21 Apr 2012 18:25:06 +0200 Subject: Now EclipseHandlerUtil.injectFields(..) also adds a method declaration if we're about to add an enum constant. --- src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/lombok') diff --git a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java index 8b01f453..c15c758e 100644 --- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java +++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java @@ -1164,7 +1164,7 @@ public class EclipseHandlerUtil { parent.fields = newArray; } - if ((field.modifiers & Modifier.STATIC) != 0) { + if (isEnumConstant(field) || (field.modifiers & Modifier.STATIC) != 0) { if (!hasClinit(parent)) { parent.addClinit(); } -- cgit