From 4911cb8b20e4247d3ae9b06e2914142d9df3397e Mon Sep 17 00:00:00 2001 From: "Benjamin, Max (mb388a)" Date: Tue, 2 Feb 2021 10:49:25 -0500 Subject: corrected static class usage when reading corrected static class usage when reading properties Issue-ID: SO-3511 Signed-off-by: Benjamin, Max (mb388a) Change-Id: I78b65f5227af6dc238079695407100f4a1b6f841 --- .../org/onap/so/client/restproperties/AAIPropertiesImpl.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'bpmn/MSOCommonBPMN/src/main/java/org') diff --git a/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/restproperties/AAIPropertiesImpl.java b/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/restproperties/AAIPropertiesImpl.java index b6227aae16..2e0ec3f154 100644 --- a/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/restproperties/AAIPropertiesImpl.java +++ b/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/restproperties/AAIPropertiesImpl.java @@ -39,8 +39,6 @@ public class AAIPropertiesImpl implements AAIProperties { public static final String AAI_ENABLE_CACHING = "aai.caching.enable"; public static final String AAI_CACHE_MAX_AGE = "aai.caching.maxAge"; - private UrnPropertiesReader reader; - @Override public URL getEndpoint() throws MalformedURLException { return new URL(UrnPropertiesReader.getVariable(AAI_ENDPOINT)); @@ -68,17 +66,17 @@ public class AAIPropertiesImpl implements AAIProperties { @Override public Long getReadTimeout() { - return Long.valueOf(reader.getVariable(AAI_READ_TIMEOUT, "60000")); + return Long.valueOf(UrnPropertiesReader.getVariable(AAI_READ_TIMEOUT, "60000")); } @Override public Long getConnectionTimeout() { - return Long.valueOf(reader.getVariable(AAI_CONNECTION_TIMEOUT, "60000")); + return Long.valueOf(UrnPropertiesReader.getVariable(AAI_CONNECTION_TIMEOUT, "60000")); } @Override public boolean isCachingEnabled() { - return Boolean.parseBoolean(reader.getVariable(AAI_ENABLE_CACHING, "false")); + return Boolean.parseBoolean(UrnPropertiesReader.getVariable(AAI_ENABLE_CACHING, "false")); } @Override @@ -86,7 +84,7 @@ public class AAIPropertiesImpl implements AAIProperties { return new AAICacheProperties() { @Override public Long getMaxAge() { - return Long.valueOf(reader.getVariable(AAI_CACHE_MAX_AGE, "60000")); + return Long.valueOf(UrnPropertiesReader.getVariable(AAI_CACHE_MAX_AGE, "60000")); } }; } -- cgit 1.2.3-korg