From 952d4f5aab9913f961e77fa0457da5d38f31d94f Mon Sep 17 00:00:00 2001 From: liamfallon Date: Sun, 16 Sep 2018 02:03:12 +0100 Subject: Fix Sonar issues in apex Fixing various Sonar issues in apex. Issue-ID: POLICY-1034 Change-Id: Ie693637d75bd7e38c71b7ba04886fb75636276ed Signed-off-by: liamfallon --- .../impl/filecarrierplugin/consumer/HeaderDelimitedTextBlockReader.java | 2 +- .../org/onap/policy/apex/service/engine/runtime/ApexEventListener.java | 1 + .../policy/apex/service/engine/runtime/EngineServiceEventInterface.java | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'services/services-engine') diff --git a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/filecarrierplugin/consumer/HeaderDelimitedTextBlockReader.java b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/filecarrierplugin/consumer/HeaderDelimitedTextBlockReader.java index 982044022..9786a3623 100644 --- a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/filecarrierplugin/consumer/HeaderDelimitedTextBlockReader.java +++ b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/filecarrierplugin/consumer/HeaderDelimitedTextBlockReader.java @@ -54,7 +54,7 @@ public class HeaderDelimitedTextBlockReader implements TextBlockReader, Runnable private boolean blockEndTokenUsed = false; // The thread used to read the text from the stream - Thread textConsumputionThread; + private Thread textConsumputionThread; // The input stream for text private InputStream inputStream; diff --git a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/ApexEventListener.java b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/ApexEventListener.java index a498bcff8..7e43f036e 100644 --- a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/ApexEventListener.java +++ b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/ApexEventListener.java @@ -30,6 +30,7 @@ import org.onap.policy.apex.service.engine.event.ApexEvent; * * @author Sajeevan Achuthan (sajeevan.achuthan@ericsson.com) */ +@FunctionalInterface public interface ApexEventListener { /** diff --git a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/EngineServiceEventInterface.java b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/EngineServiceEventInterface.java index 8e4cb82e2..f537b57bc 100644 --- a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/EngineServiceEventInterface.java +++ b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/EngineServiceEventInterface.java @@ -29,6 +29,7 @@ import org.onap.policy.apex.service.engine.event.ApexEvent; * @author Sajeevan Achuthan (sajeevan.achuthan@ericsson.com), John Keeney * (john.keeney@ericsson.com) */ +@FunctionalInterface public interface EngineServiceEventInterface { /** * This method forwards an event to the APEX engine. -- cgit 1.2.3-korg