Skip to content

Commit cfc2a77

Browse files
authored
Use toList (#1387)
1 parent cbc64e5 commit cfc2a77

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/java/org/jboss/pnc/build/finder/core/SpdxLicenseUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import java.util.Set;
3535
import java.util.regex.Matcher;
3636
import java.util.regex.Pattern;
37-
import java.util.stream.Collectors;
3837

3938
import org.apache.commons.io.FilenameUtils;
4039
import org.apache.commons.lang3.StringUtils;
@@ -90,7 +89,7 @@ public final class SpdxLicenseUtils {
9089
List<String> listedLicenseIds = getListedLicenseIds();
9190
LICENSE_IDS_LIST = listedLicenseIds.stream()
9291
.sorted(comparing(String::length).reversed().thenComparing(naturalOrder()))
93-
.collect(Collectors.toList());
92+
.toList();
9493
LICENSE_NAMES_MAP = new LinkedHashMap<>(EXPECTED_NUM_SPDX_LICENSES);
9594
LICENSE_NAMES_LIST = new ArrayList<>(EXPECTED_NUM_SPDX_LICENSES);
9695

0 commit comments

Comments
 (0)