Author: rahul
Date: Tue Jan  8 11:41:30 2008
New Revision: 610107

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

Modified:
    
commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Data.java
    
commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Datamodel.java

Modified: 
commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Data.java
URL: 
http://svn.apache.org/viewvc/commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Data.java?rev=610107&r1=610106&r2=610107&view=diff
==============================================================================
--- 
commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Data.java
 (original)
+++ 
commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Data.java
 Tue Jan  8 11:41:30 2008
@@ -59,7 +59,7 @@
      * preserved for deferred XPath evaluation. Easier than to scrape node
      * above, given the Builtin API.
      */
-    private Map namespaces;
+    private Map<String, String> namespaces;
 
     /**
      * Constructor.
@@ -148,7 +148,7 @@
      *
      * @return Returns the map of namespaces.
      */
-    public final Map getNamespaces() {
+    public final Map<String, String> getNamespaces() {
         return namespaces;
     }
 
@@ -157,7 +157,7 @@
      *
      * @param namespaces The document namespaces.
      */
-    public final void setNamespaces(final Map namespaces) {
+    public final void setNamespaces(final Map<String, String> namespaces) {
         this.namespaces = namespaces;
     }
 

Modified: 
commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Datamodel.java
URL: 
http://svn.apache.org/viewvc/commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Datamodel.java?rev=610107&r1=610106&r2=610107&view=diff
==============================================================================
--- 
commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Datamodel.java
 (original)
+++ 
commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Datamodel.java
 Tue Jan  8 11:41:30 2008
@@ -36,13 +36,13 @@
     * The set of &lt;data&gt; elements, parsed as Elements, that are
     * children of this &lt;datamodel&gt; element.
     */
-   private List data;
+   private List<Data> data;
 
    /**
     * Constructor.
     */
    public Datamodel() {
-       this.data = new ArrayList();
+       this.data = new ArrayList<Data>();
    }
 
    /**
@@ -50,7 +50,7 @@
     *
     * @return Returns the data.
     */
-   public final List getData() {
+   public final List<Data> getData() {
        return data;
    }
 


Reply via email to