diff options
author | Robert Wertman <robert.wertman@gmail.com> | 2019-01-27 00:39:30 -0500 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2019-01-28 20:44:53 +0100 |
commit | f2d03973d59d96d8bfef51d8378a4069d8d46205 (patch) | |
tree | d3d75b5fbca4e64d5ee967f3ec90b547019e89fd /src/eclipseAgent/lombok/eclipse | |
parent | ccd802503d8aa578be3f1f956d97b06a803de0aa (diff) | |
download | lombok-f2d03973d59d96d8bfef51d8378a4069d8d46205.tar.gz lombok-f2d03973d59d96d8bfef51d8378a4069d8d46205.tar.bz2 lombok-f2d03973d59d96d8bfef51d8378a4069d8d46205.zip |
Replace sized array in toArray with 0
This approach has been benchmarked to be marginally faster.
Fixes #2030.
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse')
-rwxr-xr-x[-rw-r--r--] | src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposal.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposal.java b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposal.java index ace97a4d..085c903f 100644..100755 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposal.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethodCompletionProposal.java @@ -78,7 +78,7 @@ public class PatchExtensionMethodCompletionProposal { } } } - return proposals.toArray(new IJavaCompletionProposal[proposals.size()]); + return proposals.toArray(new IJavaCompletionProposal[0]); } |