forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r700118 - /forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/helper/AXIOMXPathCreate.java
Date Mon, 29 Sep 2008 12:58:07 GMT
Author: thorsten
Date: Mon Sep 29 05:58:06 2008
New Revision: 700118

URL: http://svn.apache.org/viewvc?rev=700118&view=rev
Log:
Using interface instead of implementation. Reported by Tim Williams

Modified:
    forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/helper/AXIOMXPathCreate.java

Modified: forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/helper/AXIOMXPathCreate.java
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/helper/AXIOMXPathCreate.java?rev=700118&r1=700117&r2=700118&view=diff
==============================================================================
--- forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/helper/AXIOMXPathCreate.java
(original)
+++ forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/helper/AXIOMXPathCreate.java
Mon Sep 29 05:58:06 2008
@@ -19,6 +19,7 @@
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.LinkedHashSet;
+import java.util.Map;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
@@ -123,7 +124,7 @@
 
     OMElement element = null;
     OMNamespaceImpl localSpace = null;
-    HashMap<String, String> map = new HashMap<String, String>();
+    Map<String, String> map = new HashMap<String, String>();
     String localName = cleanFromExpressions(pathPart,map);
     String[] nameSpacedNode = localName.split(":");
     if (nameSpacedNode.length == 2) {
@@ -139,7 +140,7 @@
     pathNodes.add(element);
   }
 
-  private String cleanFromExpressions(String pathPart, HashMap<String, String> map)
{
+  private String cleanFromExpressions(String pathPart, Map<String, String> map) {
     Pattern pattern = Pattern.compile("(.*)\\[(.*)\\]");
     Matcher matcher = pattern.matcher(pathPart);
     if (matcher.matches()){



Mime
View raw message