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 5058524590049d8624b387e91a67bad6ced561c8 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Sep 12 10:41:38 2024 -0400 Remove redundant syntax --- src/test/java/org/apache/commons/scxml2/SCXMLExecutorTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/apache/commons/scxml2/SCXMLExecutorTest.java b/src/test/java/org/apache/commons/scxml2/SCXMLExecutorTest.java index fa234f57..2a6f802d 100644 --- a/src/test/java/org/apache/commons/scxml2/SCXMLExecutorTest.java +++ b/src/test/java/org/apache/commons/scxml2/SCXMLExecutorTest.java @@ -39,7 +39,7 @@ public class SCXMLExecutorTest { private void checkMicrowave02Sample(final SCXMLExecutor exec) throws Exception { final Set<EnterableState> currentStates = SCXMLTestHelper.fireEvent(exec, "turn_on"); Assertions.assertEquals(2, currentStates.size()); - final String id = (currentStates.iterator().next()).getId(); + final String id = currentStates.iterator().next().getId(); Assertions.assertTrue(id.equals("closed") || id.equals("cooking")); } @@ -230,8 +230,8 @@ public class SCXMLExecutorTest { } currentStates = SCXMLTestHelper.fireEvent(exec, "bar"); Assertions.assertEquals(1, currentStates.size()); - Assertions.assertEquals("thirty", (currentStates.iterator(). - next()).getId()); + Assertions.assertEquals("thirty", currentStates.iterator(). + next().getId()); } @Test