summaryrefslogtreecommitdiffstats
path: root/auth
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2019-09-19 15:55:00 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-19 15:55:00 +0000
commit55b71945af4ec831d70ecaab9befb3ab91207af4 (patch)
treed9231f26c160852680c7da40507ddd09513d0e14 /auth
parentb91f022e5c6ba0e5360e4b26c320814b07c2607d (diff)
parent5472732f6ecb6844650b8c59171f12e2685ca046 (diff)
Merge "Sonar-CachingFileAccess.java"
Diffstat (limited to 'auth')
-rw-r--r--auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/CachingFileAccess.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/CachingFileAccess.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/CachingFileAccess.java
index 37f3b088..ac87d80e 100644
--- a/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/CachingFileAccess.java
+++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/CachingFileAccess.java
@@ -145,12 +145,18 @@ public class CachingFileAccess<TRANS extends Trans> extends HttpCode<TRANS, Void
env.init().log("CachingFileAccess path: " + new File(web_path).getCanonicalPath());
Object obj;
obj = env.get(env.staticSlot(CFA_CACHE_CHECK_INTERVAL),600000L); // Default is 10 mins
- if (obj instanceof Long) {checkInterval=(Long)obj;
- } else {checkInterval=Long.parseLong((String)obj);}
+ if (obj instanceof Long) {
+ checkInterval=(Long)obj;
+ } else {
+ checkInterval=Long.parseLong((String)obj);
+ }
obj = env.get(env.staticSlot(CFA_MAX_SIZE), 512000); // Default is max file 500k
- if (obj instanceof Integer) {maxItemSize=(Integer)obj;
- } else {maxItemSize =Integer.parseInt((String)obj);}
+ if (obj instanceof Integer) {
+ maxItemSize=(Integer)obj;
+ } else {
+ maxItemSize =Integer.parseInt((String)obj);
+ }
clear_command = env.getProperty(CFA_CLEAR_COMMAND,null);
}