From: ToineSiebelink Date: Thu, 29 Jun 2023 14:08:14 +0000 (+0100) Subject: Clearing code smells X-Git-Tag: 3.3.3~2^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=bae276b78cdb0e6ee8c8825b977d3029b7d89f7a;p=cps.git Clearing code smells - added/updated @deprecated javadoc in EventPublisher Issue-ID: CPS-475 Signed-off-by: ToineSiebelink Change-Id: Ic0fa3efbc7dc580368bed6782db683b3c7a4d918 --- 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 05c731d94..4c9064852 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,8 +43,11 @@ import org.springframework.util.concurrent.ListenableFutureCallback; @RequiredArgsConstructor public class EventsPublisher { - /** Once all cps events will be modified to cloud compliant, will remove legacyKafkaEventTemplate with - it's java configuration file KafkaTemplateConfig. **/ + /** + * 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 + */ @Deprecated(forRemoval = true) private final KafkaTemplate legacyKafkaEventTemplate; @@ -69,7 +72,7 @@ public class EventsPublisher { * @param topicName valid topic name * @param eventKey message key * @param event message payload - * @deprecated This method is not needed anymore since the use of headers will be in place. + * @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) {