Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
3.0
-
None
Description
Reported by FindBugs is the message:
"Questionable use of non-short-circuit logic in org.apache.commons.jexl3.internal.Interpreter.isCancelled()"
protected boolean isCancelled() { if (cancelled | Thread.interrupted()) { cancelled = true; } return cancelled; }
Maybe it is better to replace method as
protected boolean isCancelled() { if (Thread.interrupted()) cancelled = true; return cancelled; }