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 69dc129d413b8b6db43f26e24b6e52d07cba32e0
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Sep 12 10:40:13 2024 -0400

    Remove redundant syntax
---
 .../org/apache/commons/scxml2/env/groovy/GroovySCXMLScript.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/scxml2/env/groovy/GroovySCXMLScript.java 
b/src/main/java/org/apache/commons/scxml2/env/groovy/GroovySCXMLScript.java
index c564de2d..a75e186d 100644
--- a/src/main/java/org/apache/commons/scxml2/env/groovy/GroovySCXMLScript.java
+++ b/src/main/java/org/apache/commons/scxml2/env/groovy/GroovySCXMLScript.java
@@ -58,10 +58,10 @@ public abstract class GroovySCXMLScript extends Script {
      */
     public boolean empty(final Object obj) {
         return obj == null ||
-                (obj instanceof String && ((String)obj).isEmpty()) ||
-                ((obj.getClass().isArray() && Array.getLength(obj)==0)) ||
-                (obj instanceof Collection && ((Collection)obj).size()==0) ||
-                (obj instanceof Map && ((Map)obj).isEmpty());
+                obj instanceof String && ((String)obj).isEmpty() ||
+                obj.getClass().isArray() && Array.getLength(obj)==0 ||
+                obj instanceof Collection && ((Collection)obj).size()==0 ||
+                obj instanceof Map && ((Map)obj).isEmpty();
     }
 
     /**

Reply via email to