add default method for getComparator to FSIteratorImplBase
package org.apache.uima.cas.impl;
+import java.util.Comparator;
+
import org.apache.uima.cas.FSIterator;
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.cas.text.AnnotationFS;
+import org.apache.uima.jcas.cas.TOP;
/**
* Version 2 compatibility only, not used internally in version 3
@@ -95,4 +98,11 @@ public abstract class FSIteratorImplBase<T extends FeatureStructure> implements
<TT extends AnnotationFS> void moveTo(int begin, int end) {
throw new UnsupportedOperationException();
}
+
+ /**
+ * default implementation of getComparator
+ */
+ public Comparator<TOP> getComparator() {
+ return ll_getIndex().getComparator();
+ }
}
