diff options
author | grootjans <grootjans@gmail.com> | 2012-07-02 21:49:41 +0200 |
---|---|---|
committer | grootjans <grootjans@gmail.com> | 2012-07-02 21:49:41 +0200 |
commit | 1c0dc22386b176572df709e5268ffd2eaf1a7126 (patch) | |
tree | a0430f16dd7113f7e9d01619ee409824f68236dc /src/core/lombok | |
parent | c0e326bfcb7f73b8c58fff964494fa766f38e043 (diff) | |
download | lombok-1c0dc22386b176572df709e5268ffd2eaf1a7126.tar.gz lombok-1c0dc22386b176572df709e5268ffd2eaf1a7126.tar.bz2 lombok-1c0dc22386b176572df709e5268ffd2eaf1a7126.zip |
Generated methods used to be inserted one higher than the intended place
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 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); } |