aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java4
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;
}