commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1593114 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Date Wed, 07 May 2014 18:44:01 GMT
Author: britter
Date: Wed May  7 18:44:01 2014
New Revision: 1593114

URL: http://svn.apache.org/r1593114
Log:
Make checkstyle happy

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=1593114&r1=1593113&r2=1593114&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java Wed
May  7 18:44:01 2014
@@ -7738,8 +7738,9 @@ public class StringUtils {
      */
     public static String wrap(String str, char wrapWith) {
 
-        if (isEmpty(str) || wrapWith == '\0')
+        if (isEmpty(str) || wrapWith == '\0') {
             return str;
+        }
 
         return wrapWith + str + wrapWith;
     }
@@ -7775,8 +7776,9 @@ public class StringUtils {
      */
     public static String wrap(String str, String wrapWith) {
 
-        if (isEmpty(str) || isEmpty(wrapWith))
+        if (isEmpty(str) || isEmpty(wrapWith)) {
             return str;
+        }
 
         return wrapWith.concat(str).concat(wrapWith);
     }



Mime
View raw message