fix compilation errors

This commit is contained in:
Mike McCandless 2016-02-25 05:51:18 -05:00
parent a1f5269280
commit 7e1fbdf31a
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public class TestBigIntegerPoint extends LuceneTestCase {
assertEquals(1, searcher.count(BigIntegerPoint.newRangeQuery("field", large.subtract(BigInteger.ONE), false, large.add(BigInteger.ONE), false)));
assertEquals(1, searcher.count(BigIntegerPoint.newSetQuery("field", large)));
assertEquals(0, searcher.count(BigIntegerPoint.newSetQuery("field", large.subtract(BigInteger.ONE))));
assertEquals(0, searcher.count(BigIntegerPoint.newSetQuery("field"));
assertEquals(0, searcher.count(BigIntegerPoint.newSetQuery("field")));
reader.close();
writer.close();

View File

@ -46,7 +46,7 @@ public class TestInetAddressPoint extends LuceneTestCase {
assertEquals(1, searcher.count(InetAddressPoint.newRangeQuery("field", InetAddress.getByName("1.2.3.3"), false, InetAddress.getByName("1.2.3.5"), false)));
assertEquals(1, searcher.count(InetAddressPoint.newSetQuery("field", InetAddress.getByName("1.2.3.4"))));
assertEquals(0, searcher.count(InetAddressPoint.newSetQuery("field", InetAddress.getByName("1.2.3.3"))));
assertEquals(0, searcher.count(InetAddressPoint.newSetQuery("field"));
assertEquals(0, searcher.count(InetAddressPoint.newSetQuery("field")));
reader.close();
writer.close();