aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers
diff options
context:
space:
mode:
authorJan Rieke <it@janrieke.de>2020-03-26 00:32:51 +0100
committerJan Rieke <it@janrieke.de>2020-03-26 00:32:51 +0100
commit1b06f4aa2960ba18d26a4d0218dd486872176971 (patch)
tree2636bead1fbacad029bb5bfe8c9075fb3beabd7d /src/core/lombok/eclipse/handlers
parent732c7257e1db44b83b4748c93969cd74195d416f (diff)
downloadlombok-1b06f4aa2960ba18d26a4d0218dd486872176971.tar.gz
lombok-1b06f4aa2960ba18d26a4d0218dd486872176971.tar.bz2
lombok-1b06f4aa2960ba18d26a4d0218dd486872176971.zip
[SuperBuilder] fix IndexOutOfBounds (fixes #2407)
Diffstat (limited to 'src/core/lombok/eclipse/handlers')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleSuperBuilder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
index 82af39fa..436cc6a0 100644
--- a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
+++ b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
@@ -242,7 +242,7 @@ public class HandleSuperBuilder extends EclipseAnnotationHandler<SuperBuilder> {
String superclassBuilderClassName = builderClassNameTemplate.replace("*", superclassClassName);
char[][] tokens = Arrays.copyOf(qualifiedTypeReference.tokens, qualifiedTypeReference.tokens.length + 1);
- tokens[tokens.length] = superclassBuilderClassName.toCharArray();
+ tokens[tokens.length-1] = superclassBuilderClassName.toCharArray();
long[] poss = new long[tokens.length];
Arrays.fill(poss, p);