diff options
author | Jim Hahn <jrh3@att.com> | 2021-09-02 09:57:16 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-09-02 11:26:11 -0400 |
commit | a84ef3cb2133fde745c50d7a23290505e4f4659a (patch) | |
tree | 9edcaf76ba26edbcf5c3be67b1e06518d1a5d344 /runtime-controlloop/src/main/java | |
parent | 5af35328dd1cab498c1d361126fd123dd859eb07 (diff) |
Fix eclipse warnings in clamp
Fixed some of these warnings, just in policy-clamp-runtime:
- equals() with wrong argument type in junit
- remove unneeded "SuppressWarning"
- unused fields
- deprecated classes/methods
Fixed some sonars, too:
- use isEqualByComparingTo()
- method complexity: used eclipse to auto-extract methods
Fixed checkstyle issues:
- indentation level
Did not address all deprecation issues (e.g., SSLSocketFactory).
Issue-ID: POLICY-3200
Change-Id: Ibd92e5326854002dc0ca2d7b3b777699cafb5e98
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'runtime-controlloop/src/main/java')
-rw-r--r-- | runtime-controlloop/src/main/java/org/onap/policy/clamp/controlloop/runtime/config/messaging/MessageDispatcherActivator.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime-controlloop/src/main/java/org/onap/policy/clamp/controlloop/runtime/config/messaging/MessageDispatcherActivator.java b/runtime-controlloop/src/main/java/org/onap/policy/clamp/controlloop/runtime/config/messaging/MessageDispatcherActivator.java index e0ab2ba91..284094bc4 100644 --- a/runtime-controlloop/src/main/java/org/onap/policy/clamp/controlloop/runtime/config/messaging/MessageDispatcherActivator.java +++ b/runtime-controlloop/src/main/java/org/onap/policy/clamp/controlloop/runtime/config/messaging/MessageDispatcherActivator.java @@ -69,8 +69,8 @@ public class MessageDispatcherActivator extends ServiceManagerContainer implemen // @formatter:off addAction("Topic endpoint management", - () -> TopicEndpointManager.getManager().start(), - () -> TopicEndpointManager.getManager().shutdown()); + () -> TopicEndpointManager.getManager().start(), + () -> TopicEndpointManager.getManager().shutdown()); publishers.forEach(publisher -> addAction("Publisher " + publisher.getClass().getSimpleName(), @@ -79,8 +79,8 @@ public class MessageDispatcherActivator extends ServiceManagerContainer implemen listeners.forEach(listener -> addAction("Listener " + listener.getClass().getSimpleName(), - () -> msgDispatcher.register(listener.getType(), listener.getScoListener()), - () -> msgDispatcher.unregister(listener.getType()))); + () -> msgDispatcher.register(listener.getType(), listener.getScoListener()), + () -> msgDispatcher.unregister(listener.getType()))); addAction("Topic Message Dispatcher", this::registerMsgDispatcher, this::unregisterMsgDispatcher); // @formatter:on |