You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by se...@apache.org on 2018/02/01 15:46:40 UTC
[08/22] flink git commit: [hotfix] [checkpoints] Drop ill-defined
hashCode() and equals() from CompletedCheckpoint.
[hotfix] [checkpoints] Drop ill-defined hashCode() and equals() from CompletedCheckpoint.
Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/13bb32ef
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/13bb32ef
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/13bb32ef
Branch: refs/heads/master
Commit: 13bb32ef891428fe9e0e14b6ecc525f15c52c40a
Parents: 8f0e6e4
Author: Stephan Ewen <se...@apache.org>
Authored: Mon Jan 29 23:54:57 2018 +0100
Committer: Stephan Ewen <se...@apache.org>
Committed: Thu Feb 1 13:43:42 2018 +0100
----------------------------------------------------------------------
.../runtime/checkpoint/CompletedCheckpoint.java | 21 --------------------
1 file changed, 21 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flink/blob/13bb32ef/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CompletedCheckpoint.java
----------------------------------------------------------------------
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CompletedCheckpoint.java b/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CompletedCheckpoint.java
index c8e368e..207c917 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CompletedCheckpoint.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CompletedCheckpoint.java
@@ -284,25 +284,4 @@ public class CompletedCheckpoint implements Serializable {
public String toString() {
return String.format("Checkpoint %d @ %d for %s", checkpointID, timestamp, job);
}
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
-
- CompletedCheckpoint that = (CompletedCheckpoint) o;
-
- return checkpointID == that.checkpointID && job.equals(that.job);
- }
-
- @Override
- public int hashCode() {
- int result = job.hashCode();
- result = 31 * result + (int) (checkpointID ^ (checkpointID >>> 32));
- return result;
- }
}