msokolov commented on code in PR #12248: URL: https://github.com/apache/lucene/pull/12248#discussion_r1180744345
########## lucene/core/src/test/org/apache/lucene/util/hnsw/HnswGraphTestCase.java: ########## @@ -23,15 +23,7 @@ import com.carrotsearch.randomizedtesting.RandomizedTest; import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Random; -import java.util.Set; +import java.util.*; Review Comment: We don't want to import all of `java.util` here ########## lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraph.java: ########## @@ -240,4 +242,34 @@ public boolean hasNext() { return nodes.hasNext(); } } + + public String prettyPrint() { Review Comment: Does this use only public methods? Could we move it to the test class that is its only user? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org