commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r610120 - /commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/SCXML.java
Date Tue, 08 Jan 2008 20:01:30 GMT
Author: rahul
Date: Tue Jan  8 12:01:29 2008
New Revision: 610120

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

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

Modified: commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/SCXML.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/SCXML.java?rev=610120&r1=610119&r2=610120&view=diff
==============================================================================
--- commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/SCXML.java
(original)
+++ commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/SCXML.java
Tue Jan  8 12:01:29 2008
@@ -72,20 +72,20 @@
     /**
      * The immediate child targets of this SCXML document root.
      */
-    private Map children;
+    private Map<String, TransitionTarget> children;
 
     /**
      * A global map of all States and Parallels associated with this
      * state machine, keyed by their id.
      */
-    private Map targets;
+    private Map<String, TransitionTarget> targets;
 
     /**
      * Constructor.
      */
     public SCXML() {
-        this.children = new LinkedHashMap();
-        this.targets = new HashMap();
+        this.children = new LinkedHashMap<String, TransitionTarget>();
+        this.targets = new HashMap<String, TransitionTarget>();
     }
 
     /**
@@ -161,7 +161,7 @@
      *
      * @deprecated Use getChildren() instead.
      */
-    public final Map getStates() {
+    public final Map<String, TransitionTarget> getStates() {
         return children;
     }
 
@@ -183,7 +183,7 @@
      *
      * @since 0.7
      */
-    public final Map getChildren() {
+    public final Map<String, TransitionTarget> getChildren() {
         return children;
     }
 
@@ -204,7 +204,7 @@
      *
      * @return Map Returns the targets.
      */
-    public final Map getTargets() {
+    public final Map<String, TransitionTarget> getTargets() {
         return targets;
     }
 



Mime
View raw message