Merge pull request #722 from goldonship/patch-1

Update StringUtil.java
This commit is contained in:
吴晟 Wu Sheng 2018-01-03 14:34:39 +08:00 committed by GitHub
commit 22420a45e8
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) {