aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-20 15:21:13 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-28 16:21:39 +0100
commitfa70b194aa7db62bdbc4cc759a606f97fe50fc92 (patch)
treeeeeb6a7211721186672a5b042cca4074a82758a4 /src/core/lombok/eclipse/handlers
parent91a40b83125808d3684ce07c5cb4a2927d0b979c (diff)
downloadlombok-fa70b194aa7db62bdbc4cc759a606f97fe50fc92.tar.gz
lombok-fa70b194aa7db62bdbc4cc759a606f97fe50fc92.tar.bz2
lombok-fa70b194aa7db62bdbc4cc759a606f97fe50fc92.zip
[trivial] the pos array was one too large here, shouldn't have any effect other than save a smidge of memory.
Diffstat (limited to 'src/core/lombok/eclipse/handlers')
-rw-r--r--src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java2
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 1099afd5..aa48e000 100644
--- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
+++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
@@ -2018,7 +2018,7 @@ public class EclipseHandlerUtil {
utilityTypeName[i] = method.get(i).toCharArray();
}
- invocation.receiver = new QualifiedNameReference(utilityTypeName, new long[method.size()], pS, pE);
+ invocation.receiver = new QualifiedNameReference(utilityTypeName, new long[method.size() - 1], pS, pE);
setGeneratedBy(invocation.receiver, source);
invocation.selector = method.get(method.size() - 1).toCharArray();
invocation.arguments = new Expression[] {varName, message};