Closes gh-11720
This commit is contained in:
Johnny Lim
2018-01-23 01:24:16 +09:00
committed by Phillip Webb
parent 55f44dc510
commit 768e7c07e6
16 changed files with 20 additions and 21 deletions

View File

@@ -36,7 +36,7 @@ import org.springframework.core.env.PropertySource;
import org.springframework.util.StringUtils;
/**
* A {@link FailureAnalyzer} that performs analysis of failures caused by a
* A {@link FailureAnalyzer} that performs analysis of failures caused by an
* {@link InvalidConfigurationPropertyValueException}.
*
* @author Stephane Nicoll

View File

@@ -610,9 +610,8 @@ public class MapBinderTests {
@Override
public Map<String, String> convert(String s) {
Map<String, String> map = new HashMap<>();
StringUtils.commaDelimitedListToSet(s).forEach((k) -> map.put(k, ""));
return map;
return StringUtils.commaDelimitedListToSet(s).stream()
.collect(Collectors.toMap((k) -> k, (k) -> ""));
}
}

View File

@@ -65,7 +65,7 @@ public class FailureAnalyzersTests {
}
@Test
public void environmentIsInjectedIntEnvironmentAwareFailureAnalyzers() {
public void environmentIsInjectedIntoEnvironmentAwareFailureAnalyzers() {
RuntimeException failure = new RuntimeException();
analyzeAndReport("basic.factories", failure);
verify(failureAnalyzer).setEnvironment(any(Environment.class));