From 7b9de12e2f41a44c1a1f0941163d817a27da53c3 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Sun, 9 Apr 2017 15:35:41 -0700 Subject: Refactor CommandExecutorInput to be immutable Change-Id: Iebaf1f35d4229426086c2f2f1a41da2511f8110b Signed-off-by: Gary Wu --- .../org/openecomp/appc/requesthandler/impl/RequestHandlerImpl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'appc-dispatcher/appc-request-handler/appc-request-handler-core') diff --git a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/openecomp/appc/requesthandler/impl/RequestHandlerImpl.java b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/openecomp/appc/requesthandler/impl/RequestHandlerImpl.java index d1303605d..61e96631a 100644 --- a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/openecomp/appc/requesthandler/impl/RequestHandlerImpl.java +++ b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/openecomp/appc/requesthandler/impl/RequestHandlerImpl.java @@ -370,9 +370,7 @@ public class RequestHandlerImpl implements RequestHandler { RuntimeContext clonedContext = cloneContext(runtimeContext); - CommandExecutorInput commandExecutorInput = new CommandExecutorInput(); - commandExecutorInput.setRuntimeContext(clonedContext); - commandExecutorInput.setTtl(remainingTTL); + CommandExecutorInput commandExecutorInput = new CommandExecutorInput(clonedContext, remainingTTL); try { commandExecutor.executeCommand(commandExecutorInput); -- cgit 1.2.3-korg