diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-01-20 15:21:13 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-01-28 16:21:39 +0100 |
commit | fa70b194aa7db62bdbc4cc759a606f97fe50fc92 (patch) | |
tree | eeeb6a7211721186672a5b042cca4074a82758a4 /src/core/lombok/eclipse | |
parent | 91a40b83125808d3684ce07c5cb4a2927d0b979c (diff) | |
download | lombok-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')
-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 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}; |