ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r582556 - /ode/trunk/utils/src/main/java/org/apache/ode/utils/DOMUtils.java
Date Sat, 06 Oct 2007 23:35:21 GMT
Author: vanto
Date: Sat Oct  6 16:35:18 2007
New Revision: 582556

URL: http://svn.apache.org/viewvc?rev=582556&view=rev
Log:
minor cleanup

Modified:
    ode/trunk/utils/src/main/java/org/apache/ode/utils/DOMUtils.java

Modified: ode/trunk/utils/src/main/java/org/apache/ode/utils/DOMUtils.java
URL: http://svn.apache.org/viewvc/ode/trunk/utils/src/main/java/org/apache/ode/utils/DOMUtils.java?rev=582556&r1=582555&r2=582556&view=diff
==============================================================================
--- ode/trunk/utils/src/main/java/org/apache/ode/utils/DOMUtils.java (original)
+++ ode/trunk/utils/src/main/java/org/apache/ode/utils/DOMUtils.java Sat Oct  6 16:35:18 2007
@@ -333,7 +333,7 @@
      */
     public static Map<String, String> getParentNamespaces(Element el) {
         HashMap<String,String> pref = new HashMap<String,String>();
-        Map mine = getMyNamespaces(el);
+        Map<String,String> mine = getMyNamespaces(el);
         Node n = el.getParentNode();
         if (n != null) {
 	        do {
@@ -585,13 +585,13 @@
      * @param el
      */
     public static void pancakeNamespaces(Element el) {
-        Map ns = getParentNamespaces(el);
+        Map<String, String> ns = getParentNamespaces(el);
         Document d = el.getOwnerDocument();
         assert d != null;
-        Iterator it = ns.keySet().iterator();
+        Iterator<String> it = ns.keySet().iterator();
         while (it.hasNext()) {
-            String key = (String) it.next();
-            String uri = (String) ns.get(key);
+            String key = it.next();
+            String uri = ns.get(key);
             Attr a = d.createAttributeNS(NS_URI_XMLNS,
                     (key.length() != 0)?("xmlns:" + key):("xmlns"));
             a.setValue(uri);



Mime
View raw message