From c93294c531185d56852772ddbb528ef3af2cbb77 Mon Sep 17 00:00:00 2001 From: emaclee Date: Wed, 18 Oct 2023 00:38:32 +0100 Subject: Fix Sonar code smells - Update deprecated methods in webSecurityCOnfig - Remove 'deprecated' tag on methods that are to be removed in EventsPublisher as they are still being used, methods with deprecated tag (for removal) must not be used Issue-ID: CPS-89 Signed-off-by: emaclee Change-Id: I104d4b3e362d22bb7fc020580de6cb4f390e54c9 --- .../java/org/onap/cps/ncmp/api/impl/events/EventsPublisher.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'cps-ncmp-service/src/main/java/org') diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/events/EventsPublisher.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/events/EventsPublisher.java index 355e5cdf79..dddad63923 100644 --- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/events/EventsPublisher.java +++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/events/EventsPublisher.java @@ -43,11 +43,9 @@ import org.springframework.util.SerializationUtils; public class EventsPublisher { /** - * KafaTemplate for legacy (non-cloud) events. - * - * @deprecated Cloud events should be used. Will address soon as part of https://jira.onap.org/browse/CPS-1717 + * KafkaTemplate for legacy (non-cloud) events. + * Note: Cloud events should be used. This will be addressed as part of https://jira.onap.org/browse/CPS-1717. */ - @Deprecated(forRemoval = true) private final KafkaTemplate legacyKafkaEventTemplate; private final KafkaTemplate cloudEventKafkaTemplate; @@ -75,13 +73,12 @@ public class EventsPublisher { /** * Generic Event publisher. + * Note: Cloud events should be used. This will be addressed as part of https://jira.onap.org/browse/CPS-1717. * * @param topicName valid topic name * @param eventKey message key * @param event message payload - * @deprecated Cloud events should be used. Will address soon as part of https://jira.onap.org/browse/CPS-1717 */ - @Deprecated(forRemoval = true) public void publishEvent(final String topicName, final String eventKey, final T event) { final CompletableFuture> eventFuture = legacyKafkaEventTemplate.send(topicName, eventKey, event); -- cgit 1.2.3-korg