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 2020/11/20 22:26:48 UTC

[commons-scxml] branch master updated: Remove useless null-check.

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


The following commit(s) were added to refs/heads/master by this push:
     new 96017d5  Remove useless null-check.
96017d5 is described below

commit 96017d5416dd09813e5419efbfde6e48e9189729
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 20 17:26:44 2020 -0500

    Remove useless null-check.
---
 src/main/java/org/apache/commons/scxml2/model/SimpleTransition.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/scxml2/model/SimpleTransition.java b/src/main/java/org/apache/commons/scxml2/model/SimpleTransition.java
index 20b58d2..8a427a5 100644
--- a/src/main/java/org/apache/commons/scxml2/model/SimpleTransition.java
+++ b/src/main/java/org/apache/commons/scxml2/model/SimpleTransition.java
@@ -82,7 +82,7 @@ public class SimpleTransition extends Executable implements Observable {
     }
 
     private boolean isCompoundStateParent(TransitionalState ts) {
-        return ts != null && ts instanceof State && ((State)ts).isComposite();
+        return ts instanceof State && ((State)ts).isComposite();
     }
 
     /**