diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2020-04-16 23:37:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 23:37:14 +0200 |
commit | c8e21dd3367876a73fba2539b7d3831a934832f9 (patch) | |
tree | 854e241afe411230d312cd4a256a21df07e331a1 /src/core/lombok/eclipse/handlers | |
parent | 94440a8bd73f176637a9890dc10df67d26615674 (diff) | |
parent | 736904298202bb75c27243f930c9e48bf2139be9 (diff) | |
download | lombok-c8e21dd3367876a73fba2539b7d3831a934832f9.tar.gz lombok-c8e21dd3367876a73fba2539b7d3831a934832f9.tar.bz2 lombok-c8e21dd3367876a73fba2539b7d3831a934832f9.zip |
Merge pull request #2409 from janrieke/superBuilderFixAIOOBE
[SuperBuilder] fix IndexOutOfBounds (fixes #2407)
Diffstat (limited to 'src/core/lombok/eclipse/handlers')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleSuperBuilder.java | 2 |
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 6634d1c8..a49c20a4 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); |