This is an automated email from the ASF dual-hosted git repository.
janhoy pushed a commit to branch branch_10_0
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_10_0 by this push:
new f16f2dc9a24 SOLR-18006 Fix precommit (#3927)
f16f2dc9a24 is described below
commit f16f2dc9a24bd5ca4990026c9a6ef459b8d05dc5
Author: Jan Høydahl <[email protected]>
AuthorDate: Fri Dec 5 21:39:29 2025 +0100
SOLR-18006 Fix precommit (#3927)
* Do errorprone checks in cherrypick script
(cherry picked from commit ae8ba6973411a534eaae1df2789f02238c271944)
---
dev-tools/scripts/cherrypick.sh | 2 +-
.../core/src/java/org/apache/solr/schema/LatLonPointSpatialField.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dev-tools/scripts/cherrypick.sh b/dev-tools/scripts/cherrypick.sh
index bdf25c150bd..692c2cc12f6 100755
--- a/dev-tools/scripts/cherrypick.sh
+++ b/dev-tools/scripts/cherrypick.sh
@@ -181,7 +181,7 @@ for BRANCH in "${BRANCHES[@]}"; do
if [[ "$PRECOMMIT" ]] || [[ "$TEST" ]]; then
LOG "INFO" "Testing the cherry-pick on $BRANCH by running 'gradlew check
${TESTARG}'"
# shellcheck disable=SC2086
- ./gradlew check -q $TESTARG
+ ./gradlew check -q $TESTARG -Pvalidation.errorprone=true
if [ $? -gt 0 ]; then
LOG "WARN" "Tests failed. Please fix and push manually"
exit 2
diff --git
a/solr/core/src/java/org/apache/solr/schema/LatLonPointSpatialField.java
b/solr/core/src/java/org/apache/solr/schema/LatLonPointSpatialField.java
index 796e6cedca3..238666d7165 100644
--- a/solr/core/src/java/org/apache/solr/schema/LatLonPointSpatialField.java
+++ b/solr/core/src/java/org/apache/solr/schema/LatLonPointSpatialField.java
@@ -336,7 +336,7 @@ public class LatLonPointSpatialField
@Override
public FieldComparator<?> newComparator(
- String fieldname,
+ String fieldName,
int numHits,
Pruning pruning,
boolean reversed) { // 'reversed' is an FYI. It's implemented by
the caller chain.
@@ -345,7 +345,7 @@ public class LatLonPointSpatialField
@Override
public boolean equals(Object o) {
- if (o == null || getClass() != o.getClass()) return false;
+ if (!(o instanceof DistanceFieldComparatorSource)) return false;
var that = (DistanceFieldComparatorSource) o;
return Objects.equals(queryPoint, that.queryPoint);
}