From 74050a3f159eca393ccb8e0b28c4fc4f974f6d5e Mon Sep 17 00:00:00 2001 From: Steve Rowe Date: Mon, 2 Oct 2017 10:39:31 -0400 Subject: [PATCH] LUCENE-7974: nearest() method returning NearestHit should be private, and NearestHit class should be package private --- .../org/apache/lucene/document/FloatPointNearestNeighbor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java b/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java index b7859d04500..90a80b69f0f 100644 --- a/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java +++ b/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java @@ -194,7 +194,7 @@ public class FloatPointNearestNeighbor { } /** Holds one hit from {@link FloatPointNearestNeighbor#nearest} */ - public static class NearestHit { + static class NearestHit { public int docID; public double distanceSquared; @@ -204,7 +204,7 @@ public class FloatPointNearestNeighbor { } } - public static NearestHit[] nearest(List readers, List liveDocs, List docBases, final int topN, float[] origin) throws IOException { + private static NearestHit[] nearest(List readers, List liveDocs, List docBases, final int topN, float[] origin) throws IOException { // System.out.println("NEAREST: readers=" + readers + " liveDocs=" + liveDocs + " origin: " + Arrays.toString(origin));