Skip to content

Commit 07ff108

Browse files
committed
Spotless
1 parent 9ade5d0 commit 07ff108

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/expression/predicate/fulltext/MatchQueryPredicate.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ public int hashCode() {
9797
public boolean equals(Object obj) {
9898
if (super.equals(obj)) {
9999
MatchQueryPredicate other = (MatchQueryPredicate) obj;
100-
return Objects.equals(field, other.field)
101-
&& Objects.equals(boost, other.boost)
102-
&& Objects.equals(fuzziness, other.fuzziness);
100+
return Objects.equals(field, other.field) && Objects.equals(boost, other.boost) && Objects.equals(fuzziness, other.fuzziness);
103101
}
104102
return false;
105103
}

x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/querydsl/query/MatchQuery.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,11 @@ public boolean equals(Object obj) {
116116
}
117117

118118
MatchQuery other = (MatchQuery) obj;
119-
return Objects.equals(text, other.text) && Objects.equals(name, other.name) && Objects.equals(options, other.options)
120-
&& Objects.equals(boost, other.boost) && Objects.equals(fuzziness, other.fuzziness);
119+
return Objects.equals(text, other.text)
120+
&& Objects.equals(name, other.name)
121+
&& Objects.equals(options, other.options)
122+
&& Objects.equals(boost, other.boost)
123+
&& Objects.equals(fuzziness, other.fuzziness);
121124
}
122125

123126
@Override

0 commit comments

Comments
 (0)