From 1c0dc22386b176572df709e5268ffd2eaf1a7126 Mon Sep 17 00:00:00 2001 From: grootjans Date: Mon, 2 Jul 2012 21:49:41 +0200 Subject: Generated methods used to be inserted one higher than the intended place --- 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 b0b88656..4ea9421c 100644 --- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java +++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java @@ -1228,7 +1228,7 @@ public class EclipseHandlerUtil { } AbstractMethodDeclaration[] newArray = new AbstractMethodDeclaration[parent.methods.length + 1]; System.arraycopy(parent.methods, 0, newArray, 0, insertionPoint); - if (insertionPoint <= parent.methods.length) { + if (insertionPoint < parent.methods.length) { System.arraycopy(parent.methods, insertionPoint, newArray, insertionPoint + 1, parent.methods.length - insertionPoint); } -- cgit