You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by tw...@apache.org on 2007/02/13 13:40:06 UTC
svn commit: r506987 -
/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASMgrSerializer.java
Author: twgoetz
Date: Tue Feb 13 04:40:05 2007
New Revision: 506987
URL: http://svn.apache.org/viewvc?view=rev&rev=506987
Log:
Jira UIMA-297: do not serialize auto-index metainformation.
https://issues.apache.org/jira/browse/UIMA-297
Modified:
incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASMgrSerializer.java
Modified: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASMgrSerializer.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASMgrSerializer.java?view=diff&rev=506987&r1=506986&r2=506987
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASMgrSerializer.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASMgrSerializer.java Tue Feb 13 04:40:05 2007
@@ -198,9 +198,12 @@
final ArrayList names = new ArrayList();
// Create an iterator over the names.
final Iterator namesIt = ir.getLabels();
- // Add the names to the list.
+ // Add the names to the list, filtering out auto-indexes.
while (namesIt.hasNext()) {
- names.add(namesIt.next());
+ String name = (String) namesIt.next();
+ if (ir.getIndex(name).getIndexingStrategy() != FSIndex.DEFAULT_BAG_INDEX) {
+ names.add(name);
+ }
}
// Now we know how many labels there are.
final int numNames = names.size();