Commit 63598629 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge branch '2.0.x'

parents ac1f2a58 f325ee94
......@@ -19,7 +19,6 @@ package org.springframework.boot.context.properties;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.core.env.PropertySource;
import org.springframework.core.env.PropertySources;
......@@ -41,8 +40,7 @@ final class CompositePropertySources implements PropertySources {
@Override
public Iterator<PropertySource<?>> iterator() {
return this.propertySources.stream().flatMap(PropertySources::stream)
.collect(Collectors.toList()).iterator();
return this.propertySources.stream().flatMap(PropertySources::stream).iterator();
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment