From e51795be399ce2e0645c3d35a576ad99aca37125 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Wed, 15 Feb 2012 20:53:53 +0000 Subject: [PATCH] LUCENE-3731: remove unnecessary code git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1244714 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/analysis/uima/UIMAAnnotationsTokenizer.java | 3 +-- .../analysis/uima/UIMATypeAwareAnnotationsTokenizer.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/analysis/uima/src/java/org/apache/lucene/analysis/uima/UIMAAnnotationsTokenizer.java b/modules/analysis/uima/src/java/org/apache/lucene/analysis/uima/UIMAAnnotationsTokenizer.java index c33b355c5bd..159d7fabfdb 100644 --- a/modules/analysis/uima/src/java/org/apache/lucene/analysis/uima/UIMAAnnotationsTokenizer.java +++ b/modules/analysis/uima/src/java/org/apache/lucene/analysis/uima/UIMAAnnotationsTokenizer.java @@ -76,8 +76,7 @@ public final class UIMAAnnotationsTokenizer extends BaseUIMATokenizer { @Override public void end() throws IOException { - if (offsetAttr.endOffset() < finalOffset) - offsetAttr.setOffset(finalOffset, finalOffset); + offsetAttr.setOffset(finalOffset, finalOffset); super.end(); } } diff --git a/modules/analysis/uima/src/java/org/apache/lucene/analysis/uima/UIMATypeAwareAnnotationsTokenizer.java b/modules/analysis/uima/src/java/org/apache/lucene/analysis/uima/UIMATypeAwareAnnotationsTokenizer.java index 01fa0e1f74f..e2b0bba2158 100644 --- a/modules/analysis/uima/src/java/org/apache/lucene/analysis/uima/UIMATypeAwareAnnotationsTokenizer.java +++ b/modules/analysis/uima/src/java/org/apache/lucene/analysis/uima/UIMATypeAwareAnnotationsTokenizer.java @@ -91,8 +91,7 @@ public final class UIMATypeAwareAnnotationsTokenizer extends BaseUIMATokenizer { @Override public void end() throws IOException { - if (offsetAttr.endOffset() < finalOffset) - offsetAttr.setOffset(finalOffset, finalOffset); + offsetAttr.setOffset(finalOffset, finalOffset); super.end(); }