You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by he...@apache.org on 2021/04/20 14:42:22 UTC
[commons-jexl] branch master updated: JEXL: expose
JexlArithmetic.isMultiplyExact(...) as protected to allow usage in derived
classes
This is an automated email from the ASF dual-hosted git repository.
henrib pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git
The following commit(s) were added to refs/heads/master by this push:
new b6da984 JEXL: expose JexlArithmetic.isMultiplyExact(...) as protected to allow usage in derived classes
b6da984 is described below
commit b6da984d80cf9c630df9715303b06751cab190eb
Author: henrib <he...@apache.org>
AuthorDate: Tue Apr 20 16:42:14 2021 +0200
JEXL: expose JexlArithmetic.isMultiplyExact(...) as protected to allow usage in derived classes
---
src/main/java/org/apache/commons/jexl3/JexlArithmetic.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/jexl3/JexlArithmetic.java b/src/main/java/org/apache/commons/jexl3/JexlArithmetic.java
index c9defce..56f2524 100644
--- a/src/main/java/org/apache/commons/jexl3/JexlArithmetic.java
+++ b/src/main/java/org/apache/commons/jexl3/JexlArithmetic.java
@@ -864,7 +864,7 @@ public class JexlArithmetic {
* @return true if product fits a long, false if it overflows
*/
@SuppressWarnings("MagicNumber")
- private static boolean isMultiplyExact(final long x, final long y, final long r) {
+ protected static boolean isMultiplyExact(final long x, final long y, final long r) {
final long ax = Math.abs(x);
final long ay = Math.abs(y);
return !(((ax | ay) >>> (Integer.SIZE - 1) != 0)