diff options
author | Jim Hahn <jrh3@att.com> | 2021-02-12 09:26:24 -0500 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-02-12 12:43:43 -0500 |
commit | 222018349b49d229fc95a3939f4eaad3a3b663a8 (patch) | |
tree | d1c0377d00269bcb3cfc3c702e8a86c350107ed5 /models-interactions/model-simulators/src/main/java | |
parent | ec348b97648f1e927365d17d376495bbd2b39c67 (diff) |
More sonars in models
Addressed the following issues:
- change visibility of constructor
- assert exception type
Issue-ID: POLICY-2905
Change-Id: Iaededb32802e4facbbc776ae51d05d2ef5c60b93
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'models-interactions/model-simulators/src/main/java')
-rw-r--r-- | models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/TopicServer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/TopicServer.java b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/TopicServer.java index 4c01511da..004a2e20c 100644 --- a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/TopicServer.java +++ b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/TopicServer.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP * ================================================================================ - * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,7 +43,7 @@ public abstract class TopicServer<Q> implements TopicListener { * @param sink sink to which responses should be published * @param source source from which requests arrive */ - public TopicServer(TopicSink sink, TopicSource source, Coder coder, Class<Q> reqClass) { + protected TopicServer(TopicSink sink, TopicSource source, Coder coder, Class<Q> reqClass) { this.sink = sink; this.source = source; this.coder = coder; |