From 691b03daf5957d576209e5341597b28c20fd4818 Mon Sep 17 00:00:00 2001 From: "Singal, Kapil (ks220y)" Date: Tue, 16 Mar 2021 00:37:42 -0400 Subject: modernizing propertyProvider by replacing Vector to ArrayList Issue-ID: CCSDK-3213 Signed-off-by: Singal, Kapil (ks220y) Change-Id: Ifcc3f618512f1f5a347b8045e54ba82d0e21d6dd --- .../java/org/onap/ccsdk/sli/core/dblib/DBLIBResourceProvider.java | 5 +++-- .../ccsdk/sli/core/sli/provider/SvcLogicPropertiesProviderImpl.java | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/DBLIBResourceProvider.java b/core/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/DBLIBResourceProvider.java index ff9d5850e..164db7579 100755 --- a/core/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/DBLIBResourceProvider.java +++ b/core/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/DBLIBResourceProvider.java @@ -23,9 +23,10 @@ package org.onap.ccsdk.sli.core.dblib; import java.io.File; import java.io.FileInputStream; import java.io.IOException; +import java.util.ArrayList; +import java.util.List; import java.util.Optional; import java.util.Properties; -import java.util.Vector; import org.onap.ccsdk.sli.core.utils.JREFileResolver; import org.onap.ccsdk.sli.core.utils.KarafRootFileResolver; import org.onap.ccsdk.sli.core.utils.PropertiesFileResolver; @@ -65,7 +66,7 @@ public class DBLIBResourceProvider { /** * A prioritized list of strategies for resolving dblib properties files. */ - private Vector dblibPropertiesFileResolvers = new Vector<>(); + private List dblibPropertiesFileResolvers = new ArrayList<>(); /** * The configuration properties for the db connection. diff --git a/core/sli/provider/src/main/java/org/onap/ccsdk/sli/core/sli/provider/SvcLogicPropertiesProviderImpl.java b/core/sli/provider/src/main/java/org/onap/ccsdk/sli/core/sli/provider/SvcLogicPropertiesProviderImpl.java index 40d305610..d415bb186 100644 --- a/core/sli/provider/src/main/java/org/onap/ccsdk/sli/core/sli/provider/SvcLogicPropertiesProviderImpl.java +++ b/core/sli/provider/src/main/java/org/onap/ccsdk/sli/core/sli/provider/SvcLogicPropertiesProviderImpl.java @@ -25,9 +25,10 @@ import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; import java.util.Optional; import java.util.Properties; -import java.util.Vector; import org.onap.ccsdk.sli.core.sli.ConfigurationException; import org.onap.ccsdk.sli.core.sli.provider.base.SvcLogicPropertiesProvider; @@ -67,7 +68,7 @@ public class SvcLogicPropertiesProviderImpl implements SvcLogicPropertiesProvide /** * A prioritized list of strategies for resolving dblib properties files. */ - private Vector sliPropertiesFileResolvers = new Vector<>(); + private List sliPropertiesFileResolvers = new ArrayList<>(); /** * The configuration properties for the db connection. Use EnvProperties class, which -- cgit 1.2.3-korg