GH-69 - Switch to Stream.toList().
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user