rmuir commented on code in PR #12286: URL: https://github.com/apache/lucene/pull/12286#discussion_r1191848264
########## lucene/core/src/java/org/apache/lucene/util/automaton/Operations.java: ########## @@ -1284,7 +1290,7 @@ public static int[] topoSortStates(Automaton a) { int numStates = a.getNumStates(); int[] states = new int[numStates]; final BitSet visited = new BitSet(numStates); Review Comment: now that the helper method is no longer recursive, can remove `visited` as a parameter and let the `private` topoSortStates initialize it? I think it would just improve it slightly since only the helper looks at it. -- 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