You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/09/12 14:46:40 UTC
(commons-scxml) 06/30: Remove redundant syntax
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-scxml.git
commit a6bc2d3232b41c610e0c18dad84ed5acafd4adbe
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Sep 12 10:40:02 2024 -0400
Remove redundant syntax
---
src/main/java/org/apache/commons/scxml2/model/Foreach.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/scxml2/model/Foreach.java b/src/main/java/org/apache/commons/scxml2/model/Foreach.java
index 8b59fbd9..b41a4228 100644
--- a/src/main/java/org/apache/commons/scxml2/model/Foreach.java
+++ b/src/main/java/org/apache/commons/scxml2/model/Foreach.java
@@ -67,7 +67,7 @@ public class Foreach extends Action implements ActionsContainer {
final Context ctx = exctx.getContext(getParentEnterableState());
final Evaluator eval = exctx.getEvaluator();
final Object arrayObject = eval.eval(ctx,array);
- if ((arrayObject == null) || (!arrayObject.getClass().isArray() && !(arrayObject instanceof Iterable) && !(arrayObject instanceof Map))) {
+ if (arrayObject == null || !arrayObject.getClass().isArray() && !(arrayObject instanceof Iterable) && !(arrayObject instanceof Map)) {
throw new ActionExecutionError("<foreach> in state " + getParentEnterableState().getId()+": invalid array value '"+array+"'");
}
if (arrayObject.getClass().isArray()) {