From 99e36bf51c26152c53c8acefa90cce80af6da434 Mon Sep 17 00:00:00 2001 From: Robbert Jan Grootjans Date: Mon, 7 Nov 2011 20:47:45 +0100 Subject: Fixed issue 295: Using log in static initializers --- src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java') 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; } -- cgit