From e7a7a34829600a24e5ee87cdc94d5a49ccc15c0f Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Tue, 13 Aug 2019 14:17:52 +0530 Subject: [PATCH] move the method to comply with java code conventions move the method to comply with java code conventions Issue-ID: AAF-876 Change-Id: Iea39c18474eeb03bd890bc6e2a627aab2aee521a Signed-off-by: Thugutla sailakshmi --- cadi/core/src/main/java/org/onap/aaf/cadi/PropAccess.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cadi/core/src/main/java/org/onap/aaf/cadi/PropAccess.java b/cadi/core/src/main/java/org/onap/aaf/cadi/PropAccess.java index 1bf0230e..92756d8c 100644 --- a/cadi/core/src/main/java/org/onap/aaf/cadi/PropAccess.java +++ b/cadi/core/src/main/java/org/onap/aaf/cadi/PropAccess.java @@ -48,14 +48,7 @@ public class PropAccess implements Access { // Sonar says cannot be static... it's ok. not too many PropAccesses created. private final SimpleDateFormat iso8601 = newISO8601(); private Symm symm; - - public static SimpleDateFormat newISO8601() { - return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); - } - public static final Level DEFAULT = Level.AUDIT; - - private int level; private Properties props; private List recursionProtection = null; @@ -110,6 +103,10 @@ public class PropAccess implements Access { init(nprops); } + public static SimpleDateFormat newISO8601() { + return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); + } + protected synchronized void init(Properties p) { // Make sure these two are set before any changes in Logging name = "cadi"; -- 2.16.6