Skip to content

Commit

Permalink
[sre] Avoid the use of Java streams for looping.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Mar 9, 2020
1 parent 07d7535 commit fa4e2ea
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -212,10 +212,11 @@ abstract class AbstractEventSpace extends AbstractSpace implements EventSpace, S
// The reception process should be treated into a separate thread in order
// to never block the sender process.
val participants = getScopedParticipants(scope)
participants.forEach [
it.getParticipant.receiveEvent(^event)
]

if (participants !== null) {
for (it : participants) {
it.getParticipant.receiveEvent(^event)
}
}
}

}

0 comments on commit fa4e2ea

Please sign in to comment.