rmuir commented on code in PR #15961:
URL: https://github.com/apache/lucene/pull/15961#discussion_r3086225868


##########
lucene/core/src/java/org/apache/lucene/util/automaton/CompiledAutomaton.java:
##########
@@ -509,8 +509,7 @@ public TransitionAccessor getTransitionAccessor() {
   public int hashCode() {
     final int prime = 31;
     int result = 1;
-    result = prime * result + ((runAutomaton == null) ? 0 : 
runAutomaton.hashCode());
-    result = prime * result + ((nfaRunAutomaton == null) ? 0 : 
nfaRunAutomaton.hashCode());
+    result = prime * result + normalAutomatonHashCode();

Review Comment:
   Yes but I am trying to avoid the insertion of a whole new automaton 
class/java file. I can see where the old logic may have bugs, but maybe we can 
fix them and avoid that?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to