From 31e9f2a9c6bdd62ce4b0645e31907dced6d4a41d Mon Sep 17 00:00:00 2001 From: Wesley Shann Date: Tue, 3 Mar 2020 20:54:46 +0100 Subject: [PATCH] [#30] Add suppress warning for unused foundEvent variable --- .../com/aexiz/daviz/simulation/algorithm/wave/tarry/Tarry.java | 1 + 1 file changed, 1 insertion(+) diff --git a/SimulationJava/src/com/aexiz/daviz/simulation/algorithm/wave/tarry/Tarry.java b/SimulationJava/src/com/aexiz/daviz/simulation/algorithm/wave/tarry/Tarry.java index 56f7ab7..f511db8 100644 --- a/SimulationJava/src/com/aexiz/daviz/simulation/algorithm/wave/tarry/Tarry.java +++ b/SimulationJava/src/com/aexiz/daviz/simulation/algorithm/wave/tarry/Tarry.java @@ -47,6 +47,7 @@ public List makePossibleNextEvents() { // foundEvent is not used, but it was needed to stop verifying if an event is found // Initially, the ifs condition within each method was done here, but it was hurting legibility // The scheme below is used as a sort of if/else + @SuppressWarnings("unused") boolean foundEvent = verifyAndMakeSendEventForNextNeighbor(events, processSpace) || verifyAndMakeSendEventForReplyingParent(events, processSpace) || verifyAndMakeResultEventToTerminate(events, processSpace, node)