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/adaptors/aai/AAIServiceProvider.java | 5 +++-- .../adaptors/resource/mdsal/MdsalResourcePropertiesProviderImpl.java | 5 +++-- .../saltstack/impl/SaltstackAdaptorPropertiesProviderImpl.java | 5 +++-- .../sli/adaptors/resource/sql/SqlResourcePropertiesProviderImpl.java | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) (limited to 'adaptors') diff --git a/adaptors/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceProvider.java b/adaptors/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceProvider.java index edc2e850d..d63136ecf 100755 --- a/adaptors/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceProvider.java +++ b/adaptors/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceProvider.java @@ -28,9 +28,10 @@ import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.lang.reflect.Method; +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; @@ -80,7 +81,7 @@ public class AAIServiceProvider implements UtilsProvider { /** * 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/adaptors/mdsal-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/MdsalResourcePropertiesProviderImpl.java b/adaptors/mdsal-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/MdsalResourcePropertiesProviderImpl.java index eee5f099f..120d15360 100755 --- a/adaptors/mdsal-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/MdsalResourcePropertiesProviderImpl.java +++ b/adaptors/mdsal-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/MdsalResourcePropertiesProviderImpl.java @@ -24,9 +24,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.utils.JREFileResolver; @@ -65,7 +66,7 @@ public class MdsalResourcePropertiesProviderImpl implements MdsalResourcePropert /** * A prioritized list of strategies for resolving sql-resource properties files. */ - private Vector mdsalResourcePropertiesFileResolvers = new Vector<>(); + private List mdsalResourcePropertiesFileResolvers = new ArrayList<>(); /** * The configuration properties for the db connection. diff --git a/adaptors/saltstack-adaptor/saltstack-adaptor-provider/src/main/java/org/onap/ccsdk/sli/adaptors/saltstack/impl/SaltstackAdaptorPropertiesProviderImpl.java b/adaptors/saltstack-adaptor/saltstack-adaptor-provider/src/main/java/org/onap/ccsdk/sli/adaptors/saltstack/impl/SaltstackAdaptorPropertiesProviderImpl.java index c5e4044fb..bbbe6f553 100644 --- a/adaptors/saltstack-adaptor/saltstack-adaptor-provider/src/main/java/org/onap/ccsdk/sli/adaptors/saltstack/impl/SaltstackAdaptorPropertiesProviderImpl.java +++ b/adaptors/saltstack-adaptor/saltstack-adaptor-provider/src/main/java/org/onap/ccsdk/sli/adaptors/saltstack/impl/SaltstackAdaptorPropertiesProviderImpl.java @@ -24,6 +24,8 @@ package org.onap.ccsdk.sli.adaptors.saltstack.impl; +import java.util.ArrayList; +import java.util.List; import org.onap.ccsdk.sli.adaptors.saltstack.SaltstackAdaptorPropertiesProvider; import org.onap.ccsdk.sli.core.sli.ConfigurationException; import org.onap.ccsdk.sli.core.utils.JREFileResolver; @@ -40,7 +42,6 @@ import java.io.IOException; import java.io.InputStream; import java.util.Optional; import java.util.Properties; -import java.util.Vector; /** * Responsible for determining the properties file to use and instantiating the @@ -69,7 +70,7 @@ public class SaltstackAdaptorPropertiesProviderImpl implements SaltstackAdaptorP /** * A prioritized list of strategies for resolving sql-resource properties files. */ - private Vector saltstackAdaptorPropertiesFileResolvers = new Vector<>(); + private List saltstackAdaptorPropertiesFileResolvers = new ArrayList<>(); /** * The configuration properties for the db connection. diff --git a/adaptors/sql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResourcePropertiesProviderImpl.java b/adaptors/sql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResourcePropertiesProviderImpl.java index f55390c39..a1f610105 100755 --- a/adaptors/sql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResourcePropertiesProviderImpl.java +++ b/adaptors/sql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResourcePropertiesProviderImpl.java @@ -24,9 +24,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.utils.JREFileResolver; @@ -65,7 +66,7 @@ public class SqlResourcePropertiesProviderImpl implements SqlResourcePropertiesP /** * A prioritized list of strategies for resolving sql-resource properties files. */ - private Vector sqlResourcePropertiesFileResolvers = new Vector<>(); + private List sqlResourcePropertiesFileResolvers = new ArrayList<>(); /** * The configuration properties for the db connection. -- cgit 1.2.3-korg