Simplify stream chain operations
See gh-39259
This commit is contained in:
committed by
Phillip Webb
parent
15f1e8536b
commit
7f4aaacf42
@@ -651,7 +651,7 @@ abstract class AbstractPackagerTests<P extends Packager> {
|
||||
expected.add("\\Q" + libraryTwo.getName() + "\\E");
|
||||
expected.add("^/META-INF/native-image/.*");
|
||||
assertThat(getPackagedEntryContent("META-INF/native-image/argfile"))
|
||||
.isEqualTo(expected.stream().collect(Collectors.joining("\n")) + "\n");
|
||||
.isEqualTo(String.join("\n", expected) + "\n");
|
||||
}
|
||||
|
||||
private File createLibraryJar() throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user