You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@skywalking.apache.org by GitBox <gi...@apache.org> on 2018/01/03 06:34:43 UTC

[GitHub] wu-sheng closed pull request #722: Update StringUtil.java

wu-sheng closed pull request #722: Update StringUtil.java
URL: https://github.com/apache/incubator-skywalking/pull/722
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/apm-commons/apm-util/src/main/java/org/apache/skywalking/apm/util/StringUtil.java b/apm-commons/apm-util/src/main/java/org/apache/skywalking/apm/util/StringUtil.java
index 9e7aefe4e..e1ca37830 100644
--- a/apm-commons/apm-util/src/main/java/org/apache/skywalking/apm/util/StringUtil.java
+++ b/apm-commons/apm-util/src/main/java/org/apache/skywalking/apm/util/StringUtil.java
@@ -21,10 +21,7 @@
 
 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) {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services