diff --git a/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/internaleventdispatching/AgentInternalEventsDispatcher.java b/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/internaleventdispatching/AgentInternalEventsDispatcher.java index 1cb32d75b4..a48f865bcf 100644 --- a/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/internaleventdispatching/AgentInternalEventsDispatcher.java +++ b/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/internaleventdispatching/AgentInternalEventsDispatcher.java @@ -126,7 +126,7 @@ public void immediateDispatch(Event event) { final Collection behaviorsMethodsToExecute; try { behaviorsMethodsToExecute = evaluateGuards(event, behaviorGuardEvaluators); - executeBehaviorMethodsInParalellWithSynchroAtTheEnd(event, behaviorsMethodsToExecute); + executeBehaviorMethodsInParalellWithSynchroAtTheEnd(behaviorsMethodsToExecute); } catch (RuntimeException exception) { throw exception; } catch (InterruptedException | ExecutionException | InvocationTargetException e) { @@ -222,14 +222,12 @@ private static Collection evaluateGuards(final Event event, * *

This function may fail if one of the called handlers has failed. Errors are logged by the executor service too. * - * @param event - the event occurrence that has activated the specified behaviors, used just for indexing purpose but not - * passed to runnable here, they were created according to this occurrence * @param behaviorsMethodsToExecute - the collection of Behaviors runnable that must be executed. * @throws InterruptedException - something interrupt the waiting of the event handler terminations. * @throws ExecutionException - when the event handlers cannot be called; or when one of the event handler has failed during * its run. */ - private void executeBehaviorMethodsInParalellWithSynchroAtTheEnd(Event event, Collection behaviorsMethodsToExecute) + private void executeBehaviorMethodsInParalellWithSynchroAtTheEnd(Collection behaviorsMethodsToExecute) throws InterruptedException, ExecutionException { final CountDownLatch doneSignal = new CountDownLatch(behaviorsMethodsToExecute.size());