You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2015/11/23 22:24:18 UTC

svn commit: r1715959 - /uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/OutOfTypeSystemData.java

Author: schor
Date: Mon Nov 23 21:24:18 2015
New Revision: 1715959

URL: http://svn.apache.org/viewvc?rev=1715959&view=rev
Log:
[UIMA-4674] fix some wrong definitions and uses of out of type system map keys

Modified:
    uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/OutOfTypeSystemData.java

Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/OutOfTypeSystemData.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/OutOfTypeSystemData.java?rev=1715959&r1=1715958&r2=1715959&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/OutOfTypeSystemData.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/OutOfTypeSystemData.java Mon Nov 23 21:24:18 2015
@@ -26,6 +26,7 @@ import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 
+import org.apache.uima.internal.util.Int2ObjHashMap;
 import org.apache.uima.jcas.cas.TOP;
 
 /**
@@ -37,6 +38,7 @@ import org.apache.uima.jcas.cas.TOP;
  * 
  */
 public class OutOfTypeSystemData {
+  
   /**
    * List of FSData objects for out-of-typesystem FSs.
    */
@@ -46,13 +48,14 @@ public class OutOfTypeSystemData {
    * Map from Feature Structure to List of String arrays holding feature names and values for
    * out-of-typesystem features on in-typesystem FSs.
    */
-  Map<TOP, List<String[]>> extraFeatureValues = new IdentityHashMap<TOP, List<String[]>>();
+  Map<TOP, List<String[]>> extraFeatureValues = new IdentityHashMap<>();
 
   /**
    * Map from FSArray instances to List of ArrayElement objects, each of which
    * holds an array index and value (as a string).
+   *   key: FSArray instance represented as an xmiId
    */
-  Map<Integer, List<ArrayElement>> arrayElements = new HashMap<Integer, List<ArrayElement>>();
+  Map<TOP, List<ArrayElement>> arrayElements = new IdentityHashMap<>();
 
   /**
    * Map used during re-serialization. Stores mapping from out-of-typesystem FS IDs to the actual