diff options
author | Robbert Jan Grootjans <grootjans@gmail.com> | 2011-11-07 20:47:45 +0100 |
---|---|---|
committer | Robbert Jan Grootjans <grootjans@gmail.com> | 2011-11-07 20:47:45 +0100 |
commit | 99e36bf51c26152c53c8acefa90cce80af6da434 (patch) | |
tree | b92ac267d1a61c80212348cfad4e8bc754ecb71a /src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java | |
parent | e8495f0ddc8f6d08307d0a441c9f923d1d12766e (diff) | |
download | lombok-99e36bf51c26152c53c8acefa90cce80af6da434.tar.gz lombok-99e36bf51c26152c53c8acefa90cce80af6da434.tar.bz2 lombok-99e36bf51c26152c53c8acefa90cce80af6da434.zip |
Fixed issue 295: Using log in static initializers
Diffstat (limited to 'src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java')
-rw-r--r-- | src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java index 328a8e6d..5fd4c041 100644 --- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java +++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java @@ -1014,8 +1014,8 @@ public class EclipseHandlerUtil { parent.fields[0] = field; } else { FieldDeclaration[] newArray = new FieldDeclaration[parent.fields.length + 1]; - System.arraycopy(parent.fields, 0, newArray, 0, parent.fields.length); - newArray[parent.fields.length] = field; + System.arraycopy(parent.fields, 0, newArray, 1, parent.fields.length); + newArray[0] = field; parent.fields = newArray; } |