fixed broken isEmpty implementation

This commit is contained in:
2019-01-04 10:16:36 +01:00
parent 257def9140
commit e114dcb9eb

View File

@ -104,6 +104,6 @@ public abstract class StringUtil {
* @return true, if s is either null or s.equals("")
*/
public static boolean isEmpty(String s) {
return (s != null) && (!s.equals (""));
return (s == null) || (s.equals (""));
}
}