Commit e9f43f30 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #7111 from izeye:string-format

* pr/7111:
  Remove unused parameters in String.format()
parents 97cf2e96 91254f21
......@@ -184,15 +184,14 @@ public class NoSuchBeanDefinitionFailureAnalyzerTests {
private void assertBeanMethodDisabled(FailureAnalysis analysis, String description,
Class<?> target, String methodName) {
String expected = String.format("Bean method '%s' in '%s' not loaded because",
methodName, ClassUtils.getShortName(target), description);
methodName, ClassUtils.getShortName(target));
assertThat(analysis.getDescription()).contains(expected);
assertThat(analysis.getDescription()).contains(description);
}
private void assertClassDisabled(FailureAnalysis analysis, String description,
String methodName) {
String expected = String.format("Bean method '%s' not loaded because", methodName,
description);
String expected = String.format("Bean method '%s' not loaded because", methodName);
assertThat(analysis.getDescription()).contains(expected);
assertThat(analysis.getDescription()).contains(description);
}
......
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