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:47:00 UTC
(commons-scxml) 26/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 9f8b9a186c3d4e7d0e2c49049ddd39c3f960d4a5
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Sep 12 10:45:11 2024 -0400
Remove redundant syntax
---
.../java/org/apache/commons/scxml2/model/TransitionalState.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/scxml2/model/TransitionalState.java b/src/main/java/org/apache/commons/scxml2/model/TransitionalState.java
index 4643bce3..8ba64d52 100644
--- a/src/main/java/org/apache/commons/scxml2/model/TransitionalState.java
+++ b/src/main/java/org/apache/commons/scxml2/model/TransitionalState.java
@@ -187,8 +187,8 @@ public abstract class TransitionalState extends EnterableState {
public final List<Transition> getTransitionsList(final String event) {
List<Transition> matchingTransitions = null; // since we returned null upto v0.6
for (final Transition t : transitions) {
- if ((event == null && t.getEvent() == null)
- || (event != null && event.equals(t.getEvent()))) {
+ if (event == null && t.getEvent() == null
+ || event != null && event.equals(t.getEvent())) {
if (matchingTransitions == null) {
matchingTransitions = new ArrayList<>();
}
@@ -207,7 +207,7 @@ public abstract class TransitionalState extends EnterableState {
* @since 0.7
*/
public final boolean hasHistory() {
- return (!history.isEmpty());
+ return !history.isEmpty();
}
/**