diff options
author | raviteja.karumuri <raviteja.karumuri@est.tech> | 2024-08-02 16:24:44 +0100 |
---|---|---|
committer | raviteja.karumuri <raviteja.karumuri@est.tech> | 2024-08-02 17:56:55 +0100 |
commit | 4a799420ad89fed0c7f09225de51d088ca57c9c3 (patch) | |
tree | 8fae998730d9861bfc82b0ecce9e413f570e15ea /a1-policy-management/src/main/java | |
parent | 56eef33f4a69febe5fcae15310895df3ab9ddf6f (diff) |
Improve tests/issues found in Sonar report - A1 Oslo
Issue-ID: CCSDK-4037
Change-Id: Ic8e13141f2e0dcb32c51134f96ce883bc05701ee
Signed-off-by: Raviteja Karumuri <raviteja.karumuri@est.tech>
Diffstat (limited to 'a1-policy-management/src/main/java')
-rw-r--r-- | a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/Application.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/Application.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/Application.java index 6f458647..714fd2e4 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/Application.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/Application.java @@ -36,8 +36,10 @@ import org.springframework.context.annotation.Bean; @SpringBootApplication public class Application { - @Autowired - private RefreshConfigTask configRefresh; + private final RefreshConfigTask configRefresh; + Application(RefreshConfigTask configRefresh) { + this.configRefresh = configRefresh; + } private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); |