Polish: String.valueOf() should not be appended to a String

This commit is contained in:
igor-suhorukov
2018-02-25 23:01:11 +03:00
committed by Juergen Hoeller
parent 49fd724d8f
commit b202205d77
2 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ public class CannotLoadBeanClassException extends FatalBeanException {
public CannotLoadBeanClassException(
@Nullable String resourceDescription, String beanName, @Nullable String beanClassName, ClassNotFoundException cause) {
super("Cannot find class [" + String.valueOf(beanClassName) + "] for bean with name '" + beanName + "'" +
super("Cannot find class [" + beanClassName + "] for bean with name '" + beanName + "'" +
(resourceDescription != null ? " defined in " + resourceDescription : ""), cause);
this.resourceDescription = resourceDescription;
this.beanName = beanName;
@@ -68,7 +68,7 @@ public class CannotLoadBeanClassException extends FatalBeanException {
public CannotLoadBeanClassException(
@Nullable String resourceDescription, String beanName, @Nullable String beanClassName, LinkageError cause) {
super("Error loading class [" + String.valueOf(beanClassName) + "] for bean with name '" + beanName + "'" +
super("Error loading class [" + beanClassName + "] for bean with name '" + beanName + "'" +
(resourceDescription != null ? " defined in " + resourceDescription : "") +
": problem with class file or dependent class", cause);
this.resourceDescription = resourceDescription;