From 4ab3c22a653129e347c712cc29118f94b238d87b Mon Sep 17 00:00:00 2001 From: Krishnajinka Date: Mon, 6 Aug 2018 14:18:00 +0900 Subject: Fix basic code issues in controlloop Found few issues while going through the code. Fixing these issues in the controlloop package classes Issue-ID: POLICY-1017 Change-Id: I24d0ce1257ad689c3e9d9b7a3bea07eeb65383f1 Signed-off-by: Krishnajinka --- .../policy/controlloop/actorserviceprovider/ActorService.java | 2 +- .../onap/policy/controlloop/actorserviceprovider/spi/Actor.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'controlloop/common/actors/actorServiceProvider/src/main') diff --git a/controlloop/common/actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/ActorService.java b/controlloop/common/actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/ActorService.java index b0b7eb566..aeb536c57 100644 --- a/controlloop/common/actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/ActorService.java +++ b/controlloop/common/actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/ActorService.java @@ -35,7 +35,7 @@ public class ActorService { private static ActorService service; // USed to load actors - private ServiceLoader loader; + private final ServiceLoader loader; private ActorService() { loader = ServiceLoader.load(Actor.class); diff --git a/controlloop/common/actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/spi/Actor.java b/controlloop/common/actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/spi/Actor.java index 46cc6f643..47e02a5cb 100644 --- a/controlloop/common/actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/spi/Actor.java +++ b/controlloop/common/actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/spi/Actor.java @@ -24,12 +24,12 @@ import java.util.List; public interface Actor { - public String actor(); + String actor(); - public List recipes(); + List recipes(); - public List recipeTargets(String recipe); + List recipeTargets(String recipe); - public List recipePayloads(String recipe); + List recipePayloads(String recipe); } -- cgit 1.2.3-korg