commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r610103 - /commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Action.java
Date Tue, 08 Jan 2008 19:30:50 GMT
Author: rahul
Date: Tue Jan  8 11:30:48 2008
New Revision: 610103

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

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

Modified: commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Action.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Action.java?rev=610103&r1=610102&r2=610103&view=diff
==============================================================================
--- commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Action.java
(original)
+++ commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/Action.java
Tue Jan  8 11:30:48 2008
@@ -25,6 +25,7 @@
 import org.apache.commons.scxml.EventDispatcher;
 import org.apache.commons.scxml.SCInstance;
 import org.apache.commons.scxml.SCXMLExpressionException;
+import org.apache.commons.scxml.TriggerEvent;
 
 /**
  * An abstract base class for executable elements in SCXML,
@@ -43,7 +44,7 @@
      * The current XML namespaces in the SCXML document for this action node,
      * preserved for deferred XPath evaluation.
      */
-    private Map namespaces;
+    private Map<String, String> namespaces;
 
     /**
      * Current document namespaces are saved under this key in the parent
@@ -83,7 +84,7 @@
      *
      * @return Returns the map of namespaces.
      */
-    public final Map getNamespaces() {
+    public final Map<String, String> getNamespaces() {
         return namespaces;
     }
 
@@ -92,7 +93,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;
     }
 
@@ -135,7 +136,7 @@
      */
     public abstract void execute(final EventDispatcher evtDispatcher,
         final ErrorReporter errRep, final SCInstance scInstance,
-        final Log appLog, final Collection derivedEvents)
+        final Log appLog, final Collection<TriggerEvent> derivedEvents)
     throws ModelException, SCXMLExpressionException;
 
     /**



Mime
View raw message