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 2019/11/11 15:59:15 UTC

svn commit: r1869662 - /uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/rule/RutaLiteralMatcher.java

Author: pkluegl
Date: Mon Nov 11 15:59:14 2019
New Revision: 1869662

URL: http://svn.apache.org/viewvc?rev=1869662&view=rev
Log:
UIMA-3862: fixed sequential on window

Modified:
    uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/rule/RutaLiteralMatcher.java

Modified: uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/rule/RutaLiteralMatcher.java
URL: http://svn.apache.org/viewvc/uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/rule/RutaLiteralMatcher.java?rev=1869662&r1=1869661&r2=1869662&view=diff
==============================================================================
--- uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/rule/RutaLiteralMatcher.java (original)
+++ uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/rule/RutaLiteralMatcher.java Mon Nov 11 15:59:14 2019
@@ -113,7 +113,7 @@ public class RutaLiteralMatcher implemen
       return Collections.emptyList();
     }
 
-    String substring = windowAnnotation.getCoveredText().substring(begin, end);
+    String substring = stream.getCas().getDocumentText().substring(begin, end);
     if (StringUtils.equals(literal, substring)) {
       AnnotationFS matchedAnnotation = getAnnotation(begin, end, stream);
       if (stream.isVisible(matchedAnnotation)) {
@@ -144,7 +144,7 @@ public class RutaLiteralMatcher implemen
       return Collections.emptyList();
     }
 
-    String substring = windowAnnotation.getCoveredText().substring(begin, end);
+    String substring = stream.getCas().getDocumentText().substring(begin, end);
     if (StringUtils.equals(literal, substring)) {
       AnnotationFS matchedAnnotation = getAnnotation(begin, end, stream);
       if (stream.isVisible(matchedAnnotation)) {