commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1199882 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
Date Wed, 09 Nov 2011 17:25:10 GMT
Author: ggregory
Date: Wed Nov  9 17:25:09 2011
New Revision: 1199882

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

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

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java?rev=1199882&r1=1199881&r2=1199882&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
Wed Nov  9 17:25:09 2011
@@ -1018,7 +1018,7 @@ public class StrBuilder implements CharS
      */
     public StrBuilder appendWithSeparators(Object[] array, String separator) {
         if (array != null && array.length > 0) {
-            separator = (separator == null ? "" : separator);
+            separator = separator == null ? "" : separator;
             append(array[0]);
             for (int i = 1; i < array.length; i++) {
                 append(separator);
@@ -1040,7 +1040,7 @@ public class StrBuilder implements CharS
      */
     public StrBuilder appendWithSeparators(Iterable<?> iterable, String separator)
{
         if (iterable != null) {
-            separator = (separator == null ? "" : separator);
+            separator = separator == null ? "" : separator;
             Iterator<?> it = iterable.iterator();
             while (it.hasNext()) {
                 append(it.next());
@@ -1064,7 +1064,7 @@ public class StrBuilder implements CharS
      */
     public StrBuilder appendWithSeparators(Iterator<?> it, String separator) {
         if (it != null) {
-            separator = (separator == null ? "" : separator);
+            separator = separator == null ? "" : separator;
             while (it.hasNext()) {
                 append(it.next());
                 if (it.hasNext()) {



Mime
View raw message