diff --git a/lucene/test-framework/src/test/org/apache/lucene/tests/analysis/TestPosition.java b/lucene/test-framework/src/test/org/apache/lucene/tests/analysis/TestPosition.java deleted file mode 100644 index a0bbd124094..00000000000 --- a/lucene/test-framework/src/test/org/apache/lucene/tests/analysis/TestPosition.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.lucene.tests.analysis; - -import org.junit.Ignore; - -/** Trivial position class. */ -@Ignore -public class TestPosition extends LookaheadTokenFilter.Position { - private String fact; - - public String getFact() { - return fact; - } - - public void setFact(String fact) { - this.fact = fact; - } -} diff --git a/lucene/test-framework/src/test/org/apache/lucene/tests/analysis/TrivialLookaheadFilter.java b/lucene/test-framework/src/test/org/apache/lucene/tests/analysis/TrivialLookaheadFilter.java index 4bb031c303d..03cef2711c3 100644 --- a/lucene/test-framework/src/test/org/apache/lucene/tests/analysis/TrivialLookaheadFilter.java +++ b/lucene/test-framework/src/test/org/apache/lucene/tests/analysis/TrivialLookaheadFilter.java @@ -25,7 +25,8 @@ import org.apache.lucene.analysis.tokenattributes.OffsetAttribute; import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute; /** Simple example of a filter that seems to show some problems with LookaheadTokenFilter. */ -public final class TrivialLookaheadFilter extends LookaheadTokenFilter { +public final class TrivialLookaheadFilter + extends LookaheadTokenFilter { private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); private final PositionIncrementAttribute posIncAtt = @@ -34,6 +35,18 @@ public final class TrivialLookaheadFilter extends LookaheadTokenFilter