commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1610149 - in /commons/proper/lang/trunk/src: changes/changes.xml main/java/org/apache/commons/lang3/StringUtils.java
Date Sun, 13 Jul 2014 09:27:57 GMT
Author: britter
Date: Sun Jul 13 09:27:57 2014
New Revision: 1610149

URL: http://svn.apache.org/r1610149
Log:
LANG-1026: Bring static method references in StringUtils to consistent style. Thanks to Alex
Yursha

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

Modified: commons/proper/lang/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/changes/changes.xml?rev=1610149&r1=1610148&r2=1610149&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/changes/changes.xml [utf-8] (original)
+++ commons/proper/lang/trunk/src/changes/changes.xml [utf-8] Sun Jul 13 09:27:57 2014
@@ -22,6 +22,7 @@
   <body>
 
   <release version="3.4" date="tba" description="tba">
+    <action issue="LANG-1026" type="update" dev="britter" due-to="Alex Yursha">Bring
static method references in StringUtils to consistent style</action>
     <action issue="LANG-1016" type="add" dev="britter" due-to="Juan Pablo Santos Rodríguez">NumberUtils#isParsable
method(s)</action>
     <action issue="LANG-1017" type="update" dev="britter" due-to="Christoph Schneegans">Use
non-ASCII digits in Javadoc examples for StringUtils.isNumeric</action>
     <action issue="LANG-1008" type="update" dev="britter" due-to="Thiago Andrade">Change
min/max methods in NumberUtils/IEEE754rUtils from array input parameters to varargs</action>

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=1610149&r1=1610148&r2=1610149&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 Sun
Jul 13 09:27:57 2014
@@ -235,7 +235,7 @@ public class StringUtils {
      * @since 3.0 Changed signature from isNotEmpty(String) to isNotEmpty(CharSequence)
      */
     public static boolean isNotEmpty(final CharSequence cs) {
-        return !StringUtils.isEmpty(cs);
+        return !isEmpty(cs);
     }
        
     /**
@@ -334,7 +334,7 @@ public class StringUtils {
      * @since 3.0 Changed signature from isNotBlank(String) to isNotBlank(CharSequence)
      */
     public static boolean isNotBlank(final CharSequence cs) {
-        return !StringUtils.isBlank(cs);
+        return !isBlank(cs);
     }
     
         /**
@@ -6243,7 +6243,7 @@ public class StringUtils {
      * @see StringUtils#defaultString(String, String)
      */
     public static <T extends CharSequence> T defaultIfBlank(final T str, final T defaultStr)
{
-        return StringUtils.isBlank(str) ? defaultStr : str;
+        return isBlank(str) ? defaultStr : str;
     }
 
     /**
@@ -6265,7 +6265,7 @@ public class StringUtils {
      * @see StringUtils#defaultString(String, String)
      */
     public static <T extends CharSequence> T defaultIfEmpty(final T str, final T defaultStr)
{
-        return StringUtils.isEmpty(str) ? defaultStr : str;
+        return isEmpty(str) ? defaultStr : str;
     }
 
     // Reversing
@@ -7316,7 +7316,7 @@ public class StringUtils {
             return false;
         }
         for (final CharSequence searchString : searchStrings) {
-            if (StringUtils.startsWith(string, searchString)) {
+            if (startsWith(string, searchString)) {
                 return true;
             }
         }
@@ -7473,7 +7473,7 @@ public class StringUtils {
             return false;
         }
         for (final CharSequence searchString : searchStrings) {
-            if (StringUtils.endsWith(string, searchString)) {
+            if (endsWith(string, searchString)) {
                 return true;
             }
         }



Mime
View raw message