Skip to content

Commit 4726e69

Browse files
Fix hashcode calculation
Signed-off-by: Lehmann_Fabian <[email protected]>
1 parent c01c7a2 commit 4726e69

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/cws/k8s/scheduler/model/NodeWithAlloc.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,7 @@ public boolean equals(Object o) {
198198

199199
@Override
200200
public int hashCode() {
201-
int result = super.hashCode();
202-
result = 31 * result + (getMaxResources() != null ? getMaxResources().hashCode() : 0);
203-
result = 31 * result + (getAssignedPods() != null ? getAssignedPods().hashCode() : 0);
204-
return result;
201+
return this.getName().hashCode();
205202
}
206203

207204
public boolean isReady(){

0 commit comments

Comments
 (0)