From 37db976d644513b007dfc22cae02a874eca75a52 Mon Sep 17 00:00:00 2001 From: Eugene Date: Tue, 8 Sep 2020 12:43:13 -0400 Subject: [PATCH] nicer format --- .../config/SecretsPropertySourceLocator.java | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/spring-cloud-kubernetes-config/src/main/java/org/springframework/cloud/kubernetes/config/SecretsPropertySourceLocator.java b/spring-cloud-kubernetes-config/src/main/java/org/springframework/cloud/kubernetes/config/SecretsPropertySourceLocator.java index 324b32f0..35aefa16 100644 --- a/spring-cloud-kubernetes-config/src/main/java/org/springframework/cloud/kubernetes/config/SecretsPropertySourceLocator.java +++ b/spring-cloud-kubernetes-config/src/main/java/org/springframework/cloud/kubernetes/config/SecretsPropertySourceLocator.java @@ -107,20 +107,24 @@ public class SecretsPropertySourceLocator implements PropertySourceLocator { private void putPathConfig(CompositePropertySource composite) { - this.properties.getPaths().stream().map(Paths::get).filter(Files::exists) - .flatMap(x -> { - try { - return Files.walk(x); - } - catch (IOException e) { - LOG.warn("Error walking properties files", e); - return null; - } - }) - .filter(Objects::nonNull) - .filter(Files::isRegularFile) - .collect(new MapPropertySourceCollector()) - .forEach(composite::addPropertySource); + this.properties + .getPaths() + .stream() + .map(Paths::get) + .filter(Files::exists) + .flatMap(x -> { + try { + return Files.walk(x); + } + catch (IOException e) { + LOG.warn("Error walking properties files", e); + return null; + } + }) + .filter(Objects::nonNull) + .filter(Files::isRegularFile) + .collect(new MapPropertySourceCollector()) + .forEach(composite::addPropertySource); } /**