GH-69 - Switch to Stream.toList().

This commit is contained in:
Oliver Drotbohm
2022-11-11 18:38:53 +01:00
parent d96263fe30
commit 55b16857f3
16 changed files with 27 additions and 34 deletions

View File

@@ -62,7 +62,7 @@ class ConfigurationProperties implements Iterable<ConfigurationProperty> {
this.properties = Arrays.stream(resources)
.flatMap(ConfigurationProperties::parseProperties)
.collect(Collectors.toList());
.toList();
} catch (IOException e) {
throw new RuntimeException(e);
@@ -81,7 +81,7 @@ class ConfigurationProperties implements Iterable<ConfigurationProperty> {
return properties.stream()
.flatMap(it -> getModuleProperty(module, it))
.collect(Collectors.toList());
.toList();
}
/*

View File

@@ -822,7 +822,7 @@ public class Documenter {
.filter(it -> !hideInternals || it.isApiBean())
.filter(it -> !alreadyMapped.contains(it))
.filter(filter::matches)
.collect(Collectors.toList());
.toList();
}
@Value(staticConstructor = "of")