diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2019-01-28 21:11:38 +0100 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2019-01-31 21:15:15 +0100 |
commit | bda6bcb4f61cd4b42b216db9a9b2c7dcaa72997e (patch) | |
tree | 3b15f530acd708993271e0a64beb72d923076478 | |
parent | 28f6c6b526dc6c384c56f53290a5d4390ac5ca99 (diff) |
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 <k.opasiak@samsung.com>
-rw-r--r-- | policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/Topic.java | 18 |
1 files changed, 7 insertions, 11 deletions
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. @@ -32,11 +33,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. */ public enum CommInfrastructure { @@ -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<String> getServers(); /** * Get the more recent events in this topic entity. - * + * * @return list of most recent events */ public String[] getRecentEvents(); |