commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r610154 - /commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/env/SimpleContext.java
Date Tue, 08 Jan 2008 21:05:30 GMT
Author: rahul
Date: Tue Jan  8 13:05:28 2008
New Revision: 610154

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

Modified:
    commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/env/SimpleContext.java

Modified: commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/env/SimpleContext.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/env/SimpleContext.java?rev=610154&r1=610153&r2=610154&view=diff
==============================================================================
--- commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/env/SimpleContext.java
(original)
+++ commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/env/SimpleContext.java
Tue Jan  8 13:05:28 2008
@@ -37,7 +37,7 @@
     /** The parent Context to this Context. */
     private Context parent;
     /** The Map of variables and their values in this Context. */
-    private Map vars;
+    private Map<String, Object> vars;
 
     /**
      * Constructor.
@@ -60,7 +60,7 @@
      *
      * @param initialVars A pre-populated initial variables map
      */
-    public SimpleContext(final Map initialVars) {
+    public SimpleContext(final Map<String, Object> initialVars) {
         this(null, initialVars);
     }
 
@@ -70,10 +70,10 @@
      * @param parent A parent Context, can be null
      * @param initialVars A pre-populated initial variables map
      */
-    public SimpleContext(final Context parent, final Map initialVars) {
+    public SimpleContext(final Context parent, final Map<String, Object> initialVars)
{
         this.parent = parent;
         if (initialVars == null) {
-            this.vars = new HashMap();
+            this.vars = new HashMap<String, Object>();
         } else {
             this.vars = initialVars;
         }
@@ -171,7 +171,7 @@
      *
      * @param vars The new Map of variables.
      */
-    protected void setVars(final Map vars) {
+    protected void setVars(final Map<String, Object> vars) {
         this.vars = vars;
     }
 
@@ -180,7 +180,7 @@
      *
      * @return Returns the vars.
      */
-    public Map getVars() {
+    public Map<String, Object> getVars() {
         return vars;
     }
 



Mime
View raw message