Author: schor Date: Wed Jul 18 18:24:32 2018 New Revision: 1836214 URL: http://svn.apache.org/viewvc?rev=1836214&view=rev Log: [UIMA-5836]
Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/Subiterator.java Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/Subiterator.java URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/Subiterator.java?rev=1836214&r1=1836213&r2=1836214&view=diff ============================================================================== --- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/Subiterator.java (original) +++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/Subiterator.java Wed Jul 18 18:24:32 2018 @@ -340,8 +340,8 @@ public class Subiterator<T extends Annot this.boundsUse = (boundsUse == null) ? BoundsUse.notBounded : boundsUse; this.isUnambiguous = !ambiguous; if (strict) { - if (BoundsUse.coveredBy != boundsUse) { - throw new IllegalArgumentException("Strict requires BoundsUse.coveredBy"); + if (BoundsUse.coveredBy != boundsUse && BoundsUse.sameBeginEnd != boundsUse) { + throw new IllegalArgumentException("Strict requires BoundsUse.coveredBy or BoundsUse.sameBeginEnd"); } } this.isStrict = strict;