mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 14:17:48 +00:00
Generated methods used to be inserted one higher than the intended place
This commit is contained in:
1 parent
c0e326bfcb
commit
1c0dc22386
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user