diff options
author | Lars Grefer <eclipse@larsgrefer.de> | 2020-08-15 16:13:00 +0200 |
---|---|---|
committer | Lars Grefer <eclipse@larsgrefer.de> | 2020-08-15 16:13:00 +0200 |
commit | efa2e5ce8c9cc2d20ab7479d1caa4a2ae1de6e8a (patch) | |
tree | 7be97c63260610ad409b9dbd889fbe9bfaf5b434 /build | |
parent | 7824e7d3045b9db278a96a21e69110976767b32e (diff) | |
download | aspectj-efa2e5ce8c9cc2d20ab7479d1caa4a2ae1de6e8a.tar.gz aspectj-efa2e5ce8c9cc2d20ab7479d1caa4a2ae1de6e8a.zip |
Collections.sort() can be replaced with List.sort()
Reports calls to Collections.sort(list, comparator) which could be replaced with list.sort(comparator).
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Diffstat (limited to 'build')
-rw-r--r-- | build/src/main/java/org/aspectj/internal/tools/build/SampleGatherer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/src/main/java/org/aspectj/internal/tools/build/SampleGatherer.java b/build/src/main/java/org/aspectj/internal/tools/build/SampleGatherer.java index ca041b33d..ce7f2ce27 100644 --- a/build/src/main/java/org/aspectj/internal/tools/build/SampleGatherer.java +++ b/build/src/main/java/org/aspectj/internal/tools/build/SampleGatherer.java @@ -421,7 +421,7 @@ class Samples { List<Sample> getSortedSamples(Comparator<Sample> comparer) { ArrayList<Sample> result = new ArrayList<>(); result.addAll(samples); - Collections.sort(result, comparer); + result.sort(comparer); return result; } } |