diff options
author | anushadasari <danush10@in.ibm.com> | 2019-09-19 10:00:36 +0530 |
---|---|---|
committer | Jonathan Gathman <jonathan.gathman@att.com> | 2019-09-19 15:42:11 +0000 |
commit | 5472732f6ecb6844650b8c59171f12e2685ca046 (patch) | |
tree | 54af5ffdb0c1effa7bb8c08514b947ff5e089936 /auth/auth-core/src/main | |
parent | f2ff377c89102191727d8c8b9050716d59e8b9f4 (diff) |
Sonar-CachingFileAccess.java
For better readability, do not put more than one statement on a single line.
Issue-ID: AAF-983
Change-Id: I8f0756b70a7013aeab5b7dea5b860eb53412609b
Signed-off-by: anushadasari <danush10@in.ibm.com>
Diffstat (limited to 'auth/auth-core/src/main')
-rw-r--r-- | auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/CachingFileAccess.java | 14 |
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); } |