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/02/16 11:51:57 UTC

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

Author: pkluegl
Date: Mon Feb 16 10:51:57 2015
New Revision: 1660066

URL: http://svn.apache.org/r1660066
Log:
UIMA-4249
- do not restrict the matched annotations to the window annotation if they have the same type

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

Modified: uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/rule/RutaTypeMatcher.java
URL: http://svn.apache.org/viewvc/uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/rule/RutaTypeMatcher.java?rev=1660066&r1=1660065&r2=1660066&view=diff
==============================================================================
--- uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/rule/RutaTypeMatcher.java (original)
+++ uima/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/rule/RutaTypeMatcher.java Mon Feb 16 10:51:57 2015
@@ -66,8 +66,9 @@ public class RutaTypeMatcher implements
       if ("uima.tcas.DocumentAnnotation".equals(name)
               || "org.apache.uima.ruta.type.Document".equals(name)
               || currentDAType.equals(type)
-              || (stream.getDocumentAnnotationType().getName().equals(name) && (firstBasicOfAll != null && firstBasicOfAll
-                      .beginsWith(type)))) {
+//              || (stream.getDocumentAnnotationType().getName().equals(name) && (firstBasicOfAll != null && firstBasicOfAll
+//                      .beginsWith(type)))
+                      ) {
         // TODO what about dynamic windowing?
         annotations.add(stream.getDocumentAnnotation());
       } else {