Skip to content

Commit add9a9b

Browse files
Fix comparison of identical values leads to a bug of non-effective value (#74040) (#74647)
Co-authored-by: Almog Tavor <[email protected]>
1 parent c6df1d9 commit add9a9b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/rest-high-level/src/main/java/org/elasticsearch/client/ml/StartDatafeedResponse.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ public boolean equals(Object other) {
7979
}
8080

8181
StartDatafeedResponse that = (StartDatafeedResponse) other;
82-
return started == started
83-
&& Objects.equals(node, that.node);
82+
return started == that.started && Objects.equals(node, that.node);
8483
}
8584

8685
@Override

0 commit comments

Comments
 (0)