From c789f9fc884d3a0b228234a68e4c614d7817cfa9 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Mon, 7 Jan 2019 16:21:36 +0100 Subject: [PATCH] [Fix] State.isExecuted() is also valid for CLOSED --- li.strolch.model/src/main/java/li/strolch/model/State.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/li.strolch.model/src/main/java/li/strolch/model/State.java b/li.strolch.model/src/main/java/li/strolch/model/State.java index 38f6a1fe1..2b02b3c98 100644 --- a/li.strolch.model/src/main/java/li/strolch/model/State.java +++ b/li.strolch.model/src/main/java/li/strolch/model/State.java @@ -136,7 +136,7 @@ public enum State { * @return true if the state is {@link #EXECUTED} */ public boolean isExecuted() { - return this == EXECUTED; + return this == EXECUTED || this == CLOSED; } /** @@ -275,5 +275,4 @@ public enum State { // should never happen, unless new state is introduced throw new IllegalStateException("Unhandled situation with states: " + states.stream().map(e -> e.state) .collect(Collectors.joining(", "))); - } -} + }}