[jbpm-commits] JBoss JBPM SVN: r6434 - jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/script.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Jun 23 23:39:54 EDT 2010


Author: rebody
Date: 2010-06-23 23:39:54 -0400 (Wed, 23 Jun 2010)
New Revision: 6434

Modified:
   jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/script/EnvironmentBindings.java
Log:
JBPM-2897 remove unsupportedOpertionException from EnvironmentBindings

Modified: jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/script/EnvironmentBindings.java
===================================================================
--- jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/script/EnvironmentBindings.java	2010-06-23 11:35:02 UTC (rev 6433)
+++ jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/script/EnvironmentBindings.java	2010-06-24 03:39:54 UTC (rev 6434)
@@ -22,6 +22,7 @@
 package org.jbpm.pvm.internal.script;
 
 import java.util.Collection;
+import java.util.Collections;
 import java.util.Map;
 import java.util.Set;
 
@@ -32,9 +33,10 @@
 
 /**
  * @author Tom Baeyens
+ * @author Huisheng Xu
  */
 public class EnvironmentBindings implements Bindings {
-  
+
   protected EnvironmentImpl environment;
 
   public EnvironmentBindings(String[] readContextNames, String writeContextName) {
@@ -54,38 +56,38 @@
   }
 
   public void putAll(Map< ? extends String, ? extends Object> toMerge) {
-    throw new UnsupportedOperationException();
+    //
   }
 
   public Object remove(Object key) {
-    throw new UnsupportedOperationException();
+    return null;
   }
 
   public void clear() {
-    throw new UnsupportedOperationException();
+    //
   }
 
   public boolean containsValue(Object value) {
-    throw new UnsupportedOperationException();
+    return false;
   }
 
   public Set<java.util.Map.Entry<String, Object>> entrySet() {
-    throw new UnsupportedOperationException();
+    return Collections.EMPTY_SET;
   }
 
   public boolean isEmpty() {
-    throw new UnsupportedOperationException();
+    return true;
   }
 
   public Set<String> keySet() {
-    throw new UnsupportedOperationException();
+    return Collections.EMPTY_SET;
   }
 
   public int size() {
-    throw new UnsupportedOperationException();
+    return 0;
   }
 
   public Collection<Object> values() {
-    throw new UnsupportedOperationException();
+    return Collections.EMPTY_SET;
   }
 }



More information about the jbpm-commits mailing list