commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1552486 - /commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/util/StringUtils.java
Date Fri, 20 Dec 2013 03:14:50 GMT
Author: ggregory
Date: Fri Dec 20 03:14:49 2013
New Revision: 1552486

URL: http://svn.apache.org/r1552486
Log:
Convert control statement bodies to block.

Modified:
    commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/util/StringUtils.java

Modified: commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/util/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/util/StringUtils.java?rev=1552486&r1=1552485&r2=1552486&view=diff
==============================================================================
--- commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/util/StringUtils.java
(original)
+++ commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/util/StringUtils.java
Fri Dec 20 03:14:49 2013
@@ -91,10 +91,11 @@ public class StringUtils {
 
                         for (++cIdx; cIdx < argStr.length(); ++cIdx) {
                             ch = argStr.charAt(cIdx);
-                            if (ch == '_' || ch == '.' || ch == '-' || ch == '+' || Character.isLetterOrDigit(ch))
-                                nameBuf.append(ch);
-                            else
-                                break;
+                            if (ch == '_' || ch == '.' || ch == '-' || ch == '+' || Character.isLetterOrDigit(ch))
{
+								nameBuf.append(ch);
+							} else {
+								break;
+							}
                         }
 
                         if (nameBuf.length() >= 0) {



Mime
View raw message