Major- Unused "context" local variable. 55/92255/1
authoranushadasari <danush10@in.ibm.com>
Tue, 30 Jul 2019 09:19:51 +0000 (14:49 +0530)
committeranushadasari <danush10@in.ibm.com>
Tue, 30 Jul 2019 09:20:18 +0000 (14:50 +0530)
If a local variable is declared but not used, it is dead code and should be removed. Doing so will improve maintainability because developers will not wonder what the variable is used for.

Issue-ID: APPC-1675
Change-Id: I9cccd6fd529591cbbe7095cce9d5687a712f42d9
Signed-off-by: anushadasari <danush10@in.ibm.com>
appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebootServer.java

index b1879ce..4847cc4 100644 (file)
@@ -143,7 +143,6 @@ public class RebootServer extends ProviderServerOperation {
         int timeout = configuration.getIntegerProperty(Constants.PROPERTY_SERVER_STATE_CHANGE_TIMEOUT);
         config.setProperty(Constants.PROPERTY_RETRY_DELAY, RETRY_INTERVAL.toString());
         config.setProperty(Constants.PROPERTY_RETRY_LIMIT, NO_OF_ATTEMPTS.toString());
-        Context context = server.getContext();
         String msg;
         boolean status = false;
         while (rc.attempt()) {