mirror of https://github.com/apache/lucene.git
Reverted CharFilter changes. The rest of patch is fine.
Reverse merged revision(s) 1326512 from lucene/dev/trunk/modules/analysis/common/src/java/org/apache/lucene/analysis/charfilter/CharFilter.java: LUCENE-3990: Fix CharFilter to delegate correctly (and prevent CharFilter slowdown! - maybe backport!!!) git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1326515 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9252239fee
commit
dac19aacfa
|
@ -65,11 +65,6 @@ public abstract class CharFilter extends CharStream {
|
|||
return input.read(cbuf, off, len);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read() throws IOException {
|
||||
return input.read();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean markSupported(){
|
||||
return input.markSupported();
|
||||
|
|
|
@ -766,19 +766,19 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
|
|||
@Override
|
||||
public int read(char[] cbuf, int off, int len) throws IOException {
|
||||
readSomething = true;
|
||||
return super.read(cbuf, off, len);
|
||||
return input.read(cbuf, off, len);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read() throws IOException {
|
||||
readSomething = true;
|
||||
return super.read();
|
||||
return input.read();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long skip(long n) throws IOException {
|
||||
readSomething = true;
|
||||
return super.skip(n);
|
||||
return input.skip(n);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue