1
1
/*
2
- * Copyright (c) 2019, 2020 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2019, 2021 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -112,7 +112,7 @@ void initFromParams(Map<String, ? super Object> params) {
112
112
launcherPaths = AppImageFile .getLauncherNames (appImageRoot , params ).stream ()
113
113
.map (name -> installedAppImage .launchersDirectory ().resolve (name ))
114
114
.map (WixAppImageFragmentBuilder ::addExeSuffixToPath )
115
- .collect ( Collectors . toList () );
115
+ .toList ();
116
116
}
117
117
118
118
programMenuFolderName = MENU_GROUP .fetchFrom (params );
@@ -162,7 +162,7 @@ private void normalizeFileAssociation(FileAssociation fa) {
162
162
163
163
// Filter out empty extensions.
164
164
fa .extensions = fa .extensions .stream ().filter (Predicate .not (
165
- String ::isEmpty )).collect ( Collectors . toList () );
165
+ String ::isEmpty )).toList ();
166
166
}
167
167
168
168
private static Path addExeSuffixToPath (Path path ) {
@@ -179,7 +179,7 @@ private void initFileAssociations(Map<String, ? super Object> params) {
179
179
.peek (this ::normalizeFileAssociation )
180
180
// Filter out file associations without extensions.
181
181
.filter (fa -> !fa .extensions .isEmpty ())
182
- .collect ( Collectors . toList () );
182
+ .toList ();
183
183
184
184
associations .stream ().filter (fa -> fa .iconPath != null ).forEach (fa -> {
185
185
// Need to add fa icon in the image.
@@ -600,7 +600,7 @@ public void createDirectory(final Path dir) throws IOException {
600
600
for (var dir : allDirs .stream ()
601
601
.filter (Predicate .not (emptyDirs ::contains ))
602
602
.filter (Predicate .not (removeFolderItems ::containsKey ))
603
- .collect ( Collectors . toList () )) {
603
+ .toList ()) {
604
604
componentIds .add (addRemoveDirectoryComponent (xml , dir ));
605
605
}
606
606
}
0 commit comments