Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
[#30] Add suppress warning for unused foundEvent variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sshann committed Mar 3, 2020
1 parent f80836d commit 31e9f2a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public List<Event> 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)
Expand Down

0 comments on commit 31e9f2a

Please sign in to comment.