commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1407141 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Date Thu, 08 Nov 2012 15:54:25 GMT
Author: ggregory
Date: Thu Nov  8 15:54:25 2012
New Revision: 1407141

URL: http://svn.apache.org/viewvc?rev=1407141&view=rev
Log:
Rename private WHITESPACE_BLOCK to WHITESPACE_PATTERN.

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=1407141&r1=1407140&r2=1407141&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 Thu
Nov  8 15:54:25 2012
@@ -144,7 +144,7 @@ public class StringUtils {
     /**
      * A regex pattern for recognizing blocks of whitespace characters.
      */
-    private static final Pattern WHITESPACE_BLOCK = Pattern.compile("\\s+");
+    private static final Pattern WHITESPACE_PATTERN = Pattern.compile("\\s+");
 
     /**
      * <p>{@code StringUtils} instances should NOT be constructed in
@@ -6472,7 +6472,7 @@ public class StringUtils {
         if (str == null) {
             return null;
         }
-        return WHITESPACE_BLOCK.matcher(trim(str)).replaceAll(" ");
+        return WHITESPACE_PATTERN.matcher(trim(str)).replaceAll(" ");
     }
 
     /**



Mime
View raw message