File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
server/src/main/java/org/elasticsearch/action/bulk Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,12 @@ public Iterator<? extends ToXContent> toXContentChunked(ToXContent.Params params
171171
172172 @ Override
173173 public boolean equals (Object o ) {
174- if (o instanceof BulkResponse that ) {
175- return tookInMillis == that .tookInMillis
176- && ingestTookInMillis == that .ingestTookInMillis
177- && Arrays .equals (responses , that .responses )
178- && Objects .equals (incrementalState , that .incrementalState );
179- } else {
180- return false ;
181- }
174+ return o == this || (o instanceof BulkResponse that
175+ && tookInMillis == that .tookInMillis
176+ && ingestTookInMillis == that .ingestTookInMillis
177+ && Arrays .equals (responses , that .responses )
178+ && Objects .equals (incrementalState , that .incrementalState ));
179+ }
182180 }
183181
184182 @ Override
You can’t perform that action at this time.
0 commit comments