diff options
author | peichhorn <peichhor@web.de> | 2012-04-21 18:25:06 +0200 |
---|---|---|
committer | peichhorn <peichhor@web.de> | 2012-04-21 18:25:06 +0200 |
commit | 34a8a4a080e301f5490d273f1a3526902f864d9b (patch) | |
tree | c927e0189289adf1b995333bae0f4f6af0d724a2 /src/core/lombok | |
parent | 3f408782de736a676ee19757894eb89c1f4ebf3b (diff) | |
download | lombok-34a8a4a080e301f5490d273f1a3526902f864d9b.tar.gz lombok-34a8a4a080e301f5490d273f1a3526902f864d9b.tar.bz2 lombok-34a8a4a080e301f5490d273f1a3526902f864d9b.zip |
Now EclipseHandlerUtil.injectFields(..) also adds a <cinit> method
declaration if we're about to add an enum constant.
Diffstat (limited to 'src/core/lombok')
-rw-r--r-- | src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |