LUCENE-3731: remove unnecessary code

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1244714 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-02-15 20:53:53 +00:00
parent afe6b6983b
commit e51795be39
2 changed files with 2 additions and 4 deletions

View File

@ -76,8 +76,7 @@ public final class UIMAAnnotationsTokenizer extends BaseUIMATokenizer {
@Override @Override
public void end() throws IOException { public void end() throws IOException {
if (offsetAttr.endOffset() < finalOffset) offsetAttr.setOffset(finalOffset, finalOffset);
offsetAttr.setOffset(finalOffset, finalOffset);
super.end(); super.end();
} }
} }

View File

@ -91,8 +91,7 @@ public final class UIMATypeAwareAnnotationsTokenizer extends BaseUIMATokenizer {
@Override @Override
public void end() throws IOException { public void end() throws IOException {
if (offsetAttr.endOffset() < finalOffset) offsetAttr.setOffset(finalOffset, finalOffset);
offsetAttr.setOffset(finalOffset, finalOffset);
super.end(); super.end();
} }