commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1198978 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/FilenameUtils.java
Date Mon, 07 Nov 2011 22:16:23 GMT
Author: ggregory
Date: Mon Nov  7 22:16:23 2011
New Revision: 1198978

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

Modified:
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/FilenameUtils.java

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/FilenameUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FilenameUtils.java?rev=1198978&r1=1198977&r2=1198978&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/FilenameUtils.java (original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/FilenameUtils.java Mon Nov
 7 22:16:23 2011
@@ -247,7 +247,7 @@ public class FilenameUtils {
      * @since Commons IO 2.0
      */
     public static String normalize(String filename, boolean unixSeparator) {
-        char separator = (unixSeparator ? UNIX_SEPARATOR : WINDOWS_SEPARATOR);
+        char separator = unixSeparator ? UNIX_SEPARATOR : WINDOWS_SEPARATOR;
         return doNormalize(filename, separator, true);
     }
 



Mime
View raw message