Use String.isEmpty() instead of String.equals("")

This commit is contained in:
stsypanov
2019-11-05 17:47:19 +02:00
committed by Juergen Hoeller
parent bb2e3ce6d1
commit 1f3b595a03
5 changed files with 8 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ public class AnnotationBeanWiringInfoResolver implements BeanWiringInfoResolver
// Autowiring by name or by type
return new BeanWiringInfo(annotation.autowire().value(), annotation.dependencyCheck());
}
else if (!"".equals(annotation.value())) {
else if (!annotation.value().isEmpty()) {
// Explicitly specified bean name for bean definition to take property values from
return new BeanWiringInfo(annotation.value(), false);
}