From 91254f21100f2ed985a476acb3a5c8bbe51cee6d Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Thu, 6 Oct 2016 10:49:59 +0900 Subject: [PATCH] Remove unused parameters in String.format() Closes gh-7111 --- .../analyzer/NoSuchBeanDefinitionFailureAnalyzerTests.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/diagnostics/analyzer/NoSuchBeanDefinitionFailureAnalyzerTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/diagnostics/analyzer/NoSuchBeanDefinitionFailureAnalyzerTests.java index 3e27ce0cc5..5e988e6259 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/diagnostics/analyzer/NoSuchBeanDefinitionFailureAnalyzerTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/diagnostics/analyzer/NoSuchBeanDefinitionFailureAnalyzerTests.java @@ -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); }