commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1144922 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/WordUtils.java
Date Sun, 10 Jul 2011 18:02:50 GMT
Author: ggregory
Date: Sun Jul 10 18:02:50 2011
New Revision: 1144922

URL: http://svn.apache.org/viewvc?rev=1144922&view=rev
Log:
Remove unnecessary parens.

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

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/WordUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/WordUtils.java?rev=1144922&r1=1144921&r2=1144922&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/WordUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/WordUtils.java Sun
Jul 10 18:02:50 2011
@@ -197,7 +197,7 @@ public class WordUtils {
      * @since 2.1
      */
     public static String capitalize(String str, char... delimiters) {
-        int delimLen = (delimiters == null ? -1 : delimiters.length);
+        int delimLen = delimiters == null ? -1 : delimiters.length;
         if (str == null || str.length() == 0 || delimLen == 0) {
             return str;
         }



Mime
View raw message