Browse Source

Fix AllocationRoutedStep equals and hashcode (#62548)

Andrei Dan 5 năm trước cách đây
mục cha
commit
79039e1630

+ 0 - 16
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/AllocationRoutedStep.java

@@ -89,20 +89,4 @@ public class AllocationRoutedStep extends ClusterStateWaitStep {
         }
         return allocationPendingAllShards;
     }
-
-    @Override
-    public int hashCode() {
-        return 611;
-    }
-
-    @Override
-    public boolean equals(Object obj) {
-        if (obj == null) {
-            return false;
-        }
-        if (getClass() != obj.getClass()) {
-            return false;
-        }
-        return super.equals(obj);
-    }
 }