commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r651760 - /commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/Builtin.java
Date Sat, 26 Apr 2008 00:51:04 GMT
Author: rahul
Date: Fri Apr 25 17:51:02 2008
New Revision: 651760

URL: http://svn.apache.org/viewvc?rev=651760&view=rev
Log:
Type safety improvements.

Modified:
    commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/Builtin.java

Modified: commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/Builtin.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/Builtin.java?rev=651760&r1=651759&r2=651760&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/Builtin.java (original)
+++ commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/Builtin.java Fri
Apr 25 17:51:02 2008
@@ -256,25 +256,25 @@
     private static class DataPrefixResolver implements PrefixResolver {
 
         /** Cached namespaces. */
-        private Map namespaces;
+        private Map<String, String> namespaces;
 
         /**
          * Constructor.
          * @param namespaces The prefix to namespace URI map.
          */
-        private DataPrefixResolver(final Map namespaces) {
+        private DataPrefixResolver(final Map<String, String> namespaces) {
             this.namespaces = namespaces;
         }
 
         /** {@inheritDoc} */
         public String getNamespaceForPrefix(final String prefix) {
-            return (String) namespaces.get(prefix);
+            return namespaces.get(prefix);
         }
 
         /** {@inheritDoc} */
         public String getNamespaceForPrefix(final String prefix,
                 final Node nsContext) {
-            return (String) namespaces.get(prefix);
+            return namespaces.get(prefix);
         }
 
         /** {@inheritDoc} */



Mime
View raw message