maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r578955 - /maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/ChangeSet.java
Date Mon, 24 Sep 2007 20:41:07 GMT
Author: dennisl
Date: Mon Sep 24 13:40:14 2007
New Revision: 578955

URL: http://svn.apache.org/viewvc?rev=578955&view=rev
Log:
o Replace Java 5 method call with StringUtils.

Modified:
    maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/ChangeSet.java

Modified: maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/ChangeSet.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/ChangeSet.java?rev=578955&r1=578954&r2=578955&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/ChangeSet.java (original)
+++ maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/ChangeSet.java Mon Sep
24 13:40:14 2007
@@ -185,8 +185,8 @@
             for ( Iterator i = files.iterator(); i.hasNext(); )
             {
                 ChangeFile file = (ChangeFile) i.next();
-                String f1 = StringUtils.replace( file.getName(), "\\", "/" ).replace( "//",
"/" );
-                String f2 = StringUtils.replace( filename, "\\", "/" ).replace( "//", "/"
);
+                String f1 = StringUtils.replace( StringUtils.replace( file.getName(), "\\",
"/" ), "//", "/" );
+                String f2 = StringUtils.replace( StringUtils.replace( filename, "\\", "/"
), "//", "/" );
                 if ( f1.indexOf( f2 ) >= 0 )
                 {
                     return true;



Mime
View raw message