Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] Restructure RangeIndexAttributeCondition #5259

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Prev Previous commit
[refactor] address SonarCloud warnings
  • Loading branch information
line-o committed Mar 28, 2024
commit 4175cb5c073033acd5e20cd304a95d8444f165a8
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ static Predicate<AtomicValue> throwingPredicateWrapper(
try {
return throwingPredicate.test(v);
} catch (XPathException e) {
RangeIndex.LOG.error("Value conversion error when testing predicate for condition, value: {}", v.toString());
RangeIndex.LOG.error("Value conversion error when testing predicate for condition, value: {}", v);
RangeIndex.LOG.error(e);
return false;
}
Expand Down Expand Up @@ -343,7 +343,7 @@ private boolean compare(final GeneralComparison generalComparison) {
}
}

return currentOperator.equals(operator) && canTest(testStep, testValue) && queryPredicate.test(testValue);
return operator.equals(currentOperator) && canTest(testStep, testValue) && queryPredicate.test(testValue);
}

private boolean canTest (final LocationStep step, final AtomicValue value) {
Expand Down
Loading