From bda6bcb4f61cd4b42b216db9a9b2c7dcaa72997e Mon Sep 17 00:00:00 2001 From: Krzysztof Opasiak Date: Mon, 28 Jan 2019 21:11:38 +0100 Subject: Remove constant from Topic interface Fix sonar issue: Move constants to a class or enum Issue-ID: POLICY-1486 Depends-On: I453a14c3dda337f2a4d08914ead32b37adc17353 Change-Id: I6baac1fe6e692074bca971f3c35bb2a29cb49205 Signed-off-by: Krzysztof Opasiak --- .../onap/policy/common/endpoints/event/comm/Topic.java | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'policy-endpoints/src/main/java') diff --git a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/Topic.java b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/Topic.java index fece6463..800fcce4 100644 --- a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/Topic.java +++ b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/Topic.java @@ -3,13 +3,14 @@ * policy-endpoints * ================================================================================ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2019 Samsung Electronics Co., Ltd. * ================================================================================ * 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. @@ -31,11 +32,6 @@ import org.onap.policy.common.capabilities.Startable; */ public interface Topic extends TopicRegisterable, Startable, Lockable { - /** - * network logger. - */ - public static final String NETWORK_LOGGER = "network"; - /** * Underlying Communication infrastructure Types. */ @@ -60,28 +56,28 @@ public interface Topic extends TopicRegisterable, Startable, Lockable { /** * Gets the topic name. - * + * * @return topic name */ public String getTopic(); /** * Gets the communication infrastructure type. - * + * * @return CommInfrastructure object */ public CommInfrastructure getTopicCommInfrastructure(); /** * Return list of servers. - * + * * @return bus servers */ public List getServers(); /** * Get the more recent events in this topic entity. - * + * * @return list of most recent events */ public String[] getRecentEvents(); -- cgit 1.2.3-korg