Update StringUtil.java

clean code
This commit is contained in:
goldon 2018-01-03 14:14:40 +08:00 committed by GitHub
parent e5ea6cf331
commit f3847972e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -21,10 +21,7 @@ package org.apache.skywalking.apm.util;
public final class StringUtil {
public static boolean isEmpty(String str) {
if (str == null || "".equals(str) || str.length() == 0) {
return true;
}
return false;
return str == null || str.length() == 0;
}
public static String join(final char delimiter, final String... strings) {