struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1173232 - in /struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/model: SiteGraphNode.java SubGraph.java
Date Tue, 20 Sep 2011 16:34:47 GMT
Author: mcucchiara
Date: Tue Sep 20 16:34:47 2011
New Revision: 1173232

URL: http://svn.apache.org/viewvc?rev=1173232&view=rev
Log:
Removed redundant escape sequence

Modified:
    struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/model/SiteGraphNode.java
    struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/model/SubGraph.java

Modified: struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/model/SiteGraphNode.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/model/SiteGraphNode.java?rev=1173232&r1=1173231&r2=1173232&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/model/SiteGraphNode.java
(original)
+++ struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/model/SiteGraphNode.java
Tue Sep 20 16:34:47 2011
@@ -57,7 +57,7 @@ public abstract class SiteGraphNode impl
     }
 
     private String cleanName() {
-        return name.replaceAll("[\\.\\/\\-\\$\\{\\}]", "_");
+        return name.replaceAll("[\\./\\-\\$\\{\\}]", "_");
     }
 
     public abstract String getColor();

Modified: struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/model/SubGraph.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/model/SubGraph.java?rev=1173232&r1=1173231&r2=1173232&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/model/SubGraph.java
(original)
+++ struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/model/SubGraph.java
Tue Sep 20 16:34:47 2011
@@ -97,7 +97,7 @@ public class SubGraph implements Render 
             return this;
         }
 
-        String[] parts = namespace.split("\\/");
+        String[] parts = namespace.split("/");
         SubGraph last = this;
         for (String part : parts) {
             if (part.equals("")) {



Mime
View raw message