Github user kl0u commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3477#discussion_r105698626
  
    --- Diff: 
flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/NFA.java ---
    @@ -209,33 +204,66 @@ public boolean equals(Object obj) {
                        return 
nonDuplicatingTypeSerializer.equals(other.nonDuplicatingTypeSerializer) &&
                                sharedBuffer.equals(other.sharedBuffer) &&
                                states.equals(other.states) &&
    -                           windowTime == other.windowTime &&
    -                           startEventCounter == other.startEventCounter;
    +                           windowTime == other.windowTime;
                } else {
                        return false;
                }
        }
     
        @Override
        public int hashCode() {
    -           return Objects.hash(nonDuplicatingTypeSerializer, sharedBuffer, 
states, windowTime, startEventCounter);
    +           return Objects.hash(nonDuplicatingTypeSerializer, sharedBuffer, 
states, windowTime);
    +   }
    +
    --- End diff --
    
    Why is this method is needed? Is the name comparison enough? And if it is 
needed indeed, I think it should move to the `State` class with a comment on 
why it is needed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to