Use String.isEmpty() instead of String.equals("")
This commit is contained in:
committed by
Juergen Hoeller
parent
bb2e3ce6d1
commit
1f3b595a03
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user