Commits

kubek2k committed 97dd21c

No longer depending on java6 fixes #40

  • Participants
  • Parent commits eef6a1a

Comments (0)

Files changed (1)

springockito-annotations/src/main/java/org/kubek2k/springockito/annotations/internal/naming/strategies/AbstractBeanNameResolver.java

 
     public boolean canGetBeanName(Field field) {
         String beanName = resolveBeanName(field);
-        return isBlank(beanName);
+        return isNotBlank(beanName);
     }
 
-    private boolean isBlank(String beanName) {
-        return beanName != null && !beanName.isEmpty();
+    private boolean isNotBlank(String beanName) {
+        return beanName != null && beanName.length() > 0;
     }
 }