File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
jablib/src/main/java/org/jabref/model/strings Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -635,19 +635,18 @@ public static boolean isNullOrEmpty(String toTest) {
635
635
}
636
636
637
637
public static boolean isBlank (String string ) {
638
- return ! isNotBlank (string );
638
+ return (string == null ) || string . isBlank ( );
639
639
}
640
640
641
641
public static boolean isBlank (Optional <String > string ) {
642
- return ! isNotBlank ( string );
642
+ return string . isEmpty () || isBlank ( string . get () );
643
643
}
644
644
645
645
/**
646
646
* Checks if a CharSequence is not empty (""), not null and not whitespace only.
647
647
*/
648
648
public static boolean isNotBlank (String string ) {
649
- // No Guava equivalent existing
650
- return StringUtils .isNotBlank (string );
649
+ return !isBlank (string );
651
650
}
652
651
653
652
public static boolean isNotBlank (Optional <String > string ) {
You can’t perform that action at this time.
0 commit comments