Fixed Sonar Issues 41/40641/1
authorwasala <przemyslaw.wasala@nokia.com>
Tue, 3 Apr 2018 06:13:01 +0000 (08:13 +0200)
committerwasala <przemyslaw.wasala@nokia.com>
Tue, 3 Apr 2018 06:13:01 +0000 (08:13 +0200)
Deleted useless code

Change-Id: I8d813d82c5b8b6ae3093d5d6fdec1688dd8eae6d
Issue-ID: DCAEGEN2-407
Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/DmaapConsumerTask.java
prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTask.java
prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/config/DmaapConfig.java [deleted file]
prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/config/DmaapCustomConfig.java
prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/config/DmaapProducerConfiguration.java

index 0762fc8..706794f 100644 (file)
@@ -38,7 +38,6 @@ public class DmaapConsumerTask implements DmaapTask {
     public void execute() {
         logger.debug("Start task DmaapConsumerTask::execute() :: Execution Time - {}", dateTimeFormatter.format(
             LocalDateTime.now()));
-        //TODO: ADD implementation for executing request to consume topic from dmaap
 
         logger.debug("End task DmaapConsumerTask::execute() :: Execution Time - {}",
             dateTimeFormatter.format(LocalDateTime.now()));
index 277bc70..90c1466 100644 (file)
@@ -56,7 +56,7 @@ public class ScheduledTask {
             logger
                 .error("Task scheduledTaskAskingDMaaPOfConsumeEvent()::AAINotFoundException :: Execution Time - {}:{}",
                     dateTimeFormatter.format(
-                        LocalDateTime.now()), e.getMessage());
+                        LocalDateTime.now()), e);
         }
     }
 
diff --git a/prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/config/DmaapConfig.java b/prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/config/DmaapConfig.java
deleted file mode 100644 (file)
index 430a103..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * PNF-REGISTRATION-HANDLER
- * ================================================================================
- * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-package org.onap.dcaegen2.services.config;
-
-import java.io.Serializable;
-
-/**
- * @author <a href="mailto:przemyslaw.wasala@nokia.com">Przemysław Wąsala</a> on 3/23/18
- */
-interface DmaapConfig extends Serializable {
-
-}
index 1026cc3..ee84933 100644 (file)
  */
 package org.onap.dcaegen2.services.config;
 
+import java.io.Serializable;
+
 /**
  * @author <a href="mailto:przemyslaw.wasala@nokia.com">Przemysław Wąsala</a> on 3/28/18
  */
-public interface DmaapCustomConfig extends DmaapConfig {
+public interface DmaapCustomConfig extends Serializable {
 
     String dmmaphostName();
 
index 550d979..b63d68b 100644 (file)
@@ -30,11 +30,13 @@ public abstract class DmaapProducerConfiguration implements DmaapCustomConfig {
 
     private static final long serialVersionUID = 1L;
 
-    public interface Builder extends
+    interface Builder extends
         DmaapCustomConfig.Builder<DmaapProducerConfiguration, DmaapProducerConfiguration.Builder> {
     }
 
-    public static Builder builder() {
+    public static DmaapProducerConfiguration.Builder builder() {
         return ImmutableDmaapProducerConfiguration.builder();
     }
+
+
 }