-
Notifications
You must be signed in to change notification settings - Fork 246
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
Replace deprecated JexlArithmetic.compare() #2490
Replace deprecated JexlArithmetic.compare() #2490
Conversation
@@ -221,7 +222,7 @@ public boolean lessThan(final Object left, final Object right) { | |||
for (final Object o : set) { | |||
Object normalizedO = ValueTuple.getNormalizedValue(o); | |||
Object normalizedRight = ValueTuple.getNormalizedValue(right); | |||
if (compare(normalizedO, normalizedRight, LESS_THAN) < 0) { | |||
if (compare(normalizedO, normalizedRight, JexlOperator.LT) < 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the string constants on line 26 are needed anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still not resolved
warehouse/query-core/src/main/java/datawave/query/jexl/DefaultArithmetic.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused constants
5af52e2
Why am I seeing changes to all of the docker files in the submodules in this PR. Also the formatting is failing. |
I think that they're from changes merged from integration, but I could be wrong. I've been working on the sub-modules in their own directories, so that could be it too. |
00b1af2
to
d779781
Compare
d779781
to
2525399
Compare
The previous version used a String instead of a JexlOperator for the operator parameter. The following classes have been updated to use JexlArithmetic.compare(Object left, Object right, JexlOperator operator):
part of #2443