madrob commented on a change in pull request #1184: LUCENE-9142 Refactor IntSet 
operations for determinize
URL: https://github.com/apache/lucene-solr/pull/1184#discussion_r368349481
 
 

 ##########
 File path: 
lucene/core/src/java/org/apache/lucene/util/automaton/SortedIntSet.java
 ##########
 @@ -151,126 +141,23 @@ public void computeHash() {
     }
   }
 
+  /**
+   * Create a FrozenIntSet from the current values in this IntSet.
+   *
+   * Note: Must call computeHash() before calling this method
+   *
+   * @param state the state to save
+   * @return a FrozenIntSet that has the same values and hashCode as this set
+   */
   public FrozenIntSet freeze(int state) {
     final int[] c = new int[upto];
     System.arraycopy(values, 0, c, 0, upto);
 
 Review comment:
   Arrays.copyOf does it in two steps, same as here. FutureArrays has compare, 
equals, and mismatch that I see?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to