From 0f4ce01009431809482c3d9fb041a565279242c7 Mon Sep 17 00:00:00 2001 From: nandkumar Date: Tue, 6 Aug 2019 17:53:47 +0530 Subject: Sonar Critical: Make dateFormat an instance variable Change-Id: I1f275c2b4b814afc7c50e02e756312ce6923efe0 Issue-ID: VID-535 Signed-off-by: nandkumar --- .../src/main/java/org/onap/vid/controller/ViewLogController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/ViewLogController.java b/vid-app-common/src/main/java/org/onap/vid/controller/ViewLogController.java index 92eba8b5f..5775b3cf3 100644 --- a/vid-app-common/src/main/java/org/onap/vid/controller/ViewLogController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/ViewLogController.java @@ -44,7 +44,8 @@ public class ViewLogController extends RestrictedBaseController{ private static final EELFLoggerDelegate LOGGER = EELFLoggerDelegate.getLogger(ViewLogController.class); /** The Constant dateFormat. */ - static final DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + public final DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + /** The servlet context. */ private @Autowired ServletContext servletContext; -- cgit 1.2.3-korg