You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by pk...@apache.org on 2015/10/16 17:10:19 UTC

svn commit: r1709034 - /uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/action/UnmarkAction.java

Author: pkluegl
Date: Fri Oct 16 15:10:19 2015
New Revision: 1709034

URL: http://svn.apache.org/viewvc?rev=1709034&view=rev
Log:
UIMA-4603
- use actual type in order to avoid parent type skipping

Modified:
    uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/action/UnmarkAction.java

Modified: uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/action/UnmarkAction.java
URL: http://svn.apache.org/viewvc/uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/action/UnmarkAction.java?rev=1709034&r1=1709033&r2=1709034&view=diff
==============================================================================
--- uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/action/UnmarkAction.java (original)
+++ uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/action/UnmarkAction.java Fri Oct 16 15:10:19 2015
@@ -60,7 +60,7 @@ public class UnmarkAction extends TypeSe
       Type matchedType = annotationFS.getType();
       boolean subsumes = stream.getCas().getTypeSystem().subsumes(t, matchedType);
       if(subsumes && !allAtAnchor) {
-        stream.removeAnnotation(annotationFS, t);
+        stream.removeAnnotation(annotationFS, matchedType);
       } else {
         RutaBasic beginAnchor = stream.getBeginAnchor(annotationFS.getBegin());
         Collection<AnnotationFS> beginAnchors = beginAnchor.getBeginAnchors(t);