diff options
author | Andy Clement <aclement@pivotal.io> | 2020-08-15 22:39:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-15 22:39:09 -0700 |
commit | 02257f178a8675de0603dbe3b3b442c2ac47870d (patch) | |
tree | a88365d7c9a13f729e2632b1538e5913303a6b98 /org.aspectj.matcher/src/test/java/org/aspectj/weaver/TestUtils.java | |
parent | d5dada81e503e257d20e2aa829716fb5c3934072 (diff) | |
parent | d93bacd2e16e7ee13bd4c4e48a89ef8646fd0d68 (diff) | |
download | aspectj-02257f178a8675de0603dbe3b3b442c2ac47870d.tar.gz aspectj-02257f178a8675de0603dbe3b3b442c2ac47870d.zip |
Merge pull request #13 from larsgrefer/feature/collection-performance
Improve performance and readability of collection handling
Diffstat (limited to 'org.aspectj.matcher/src/test/java/org/aspectj/weaver/TestUtils.java')
-rw-r--r-- | org.aspectj.matcher/src/test/java/org/aspectj/weaver/TestUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.aspectj.matcher/src/test/java/org/aspectj/weaver/TestUtils.java b/org.aspectj.matcher/src/test/java/org/aspectj/weaver/TestUtils.java index 9f7daa756..69bc674ef 100644 --- a/org.aspectj.matcher/src/test/java/org/aspectj/weaver/TestUtils.java +++ b/org.aspectj.matcher/src/test/java/org/aspectj/weaver/TestUtils.java @@ -298,7 +298,7 @@ public class TestUtils { l.add(str.substring(start, i).trim()); start = i + 1; } - return (String[]) l.toArray(new String[l.size()]); + return (String[]) l.toArray(new String[0]); } } |