mirror of https://github.com/apache/lucene.git
woops
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1726228 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
56a76eb5a1
commit
d71d1aa941
|
@ -192,10 +192,6 @@ public class NIOFSDirectory extends FSDirectory {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void seekInternal(long pos) throws IOException {
|
protected void seekInternal(long pos) throws IOException {}
|
||||||
if (pos > length()) {
|
|
||||||
throw new EOFException("read past EOF: pos=" + pos + " vs length=" + length() + ": " + this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -434,8 +434,7 @@ public abstract class BaseGeoPointTestCase extends LuceneTestCase {
|
||||||
} else {
|
} else {
|
||||||
result = -90 + 180.0 * random().nextDouble();
|
result = -90 + 180.0 * random().nextDouble();
|
||||||
}
|
}
|
||||||
// TODO: we should not do this here! it weakens the test, and users don't pre-quantize the lat/lons they send us:
|
return result;
|
||||||
return unscaleLat(scaleLat(result));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public double randomLon(boolean small) {
|
public double randomLon(boolean small) {
|
||||||
|
@ -445,8 +444,7 @@ public abstract class BaseGeoPointTestCase extends LuceneTestCase {
|
||||||
} else {
|
} else {
|
||||||
result = -180 + 360.0 * random().nextDouble();
|
result = -180 + 360.0 * random().nextDouble();
|
||||||
}
|
}
|
||||||
// TODO: we should not do this here! it weakens the test, and users don't pre-quantize the lat/lons they send us:
|
return result;
|
||||||
return unscaleLon(scaleLon(result));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected GeoRect randomRect(boolean small, boolean canCrossDateLine) {
|
protected GeoRect randomRect(boolean small, boolean canCrossDateLine) {
|
||||||
|
|
|
@ -93,7 +93,7 @@ public class TestCompressingTermVectorsFormat extends BaseTermVectorsFormatTestC
|
||||||
// by this test.
|
// by this test.
|
||||||
iwConf.setCodec(CompressingCodec.randomInstance(random(), 4*1024, 100, false, 8));
|
iwConf.setCodec(CompressingCodec.randomInstance(random(), 4*1024, 100, false, 8));
|
||||||
IndexWriter iw = new IndexWriter(dir, iwConf);
|
IndexWriter iw = new IndexWriter(dir, iwConf);
|
||||||
DirectoryReader ir = DirectoryReader.open(iw);
|
DirectoryReader ir = DirectoryReader.open(iw, true);
|
||||||
for (int i = 0; i < 5; i++) {
|
for (int i = 0; i < 5; i++) {
|
||||||
Document doc = new Document();
|
Document doc = new Document();
|
||||||
FieldType ft = new FieldType(TextField.TYPE_NOT_STORED);
|
FieldType ft = new FieldType(TextField.TYPE_NOT_STORED);
|
||||||
|
|
Loading…
Reference in New Issue