Replace stream with succinct String.join (#9037)

This commit is contained in:
DeepCrimson 2022-06-03 12:32:19 -07:00 committed by GitHub
parent ef5bd74f27
commit abed4219e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,7 +161,7 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
CardScanner.scan(errorsList); CardScanner.scan(errorsList);
if (errorsList.size() > 0) { if (errorsList.size() > 0) {
Assert.fail("Found errors on card loading: " + '\n' + errorsList.stream().collect(Collectors.joining("\n"))); Assert.fail("Found errors on card loading: " + '\n' + String.join("\n", errorsList));
} }
} }