Sonar Critical: Make dateFormat an instance variable 97/92197/4
authornandkumar <np00602065@techmahindra.com>
Tue, 6 Aug 2019 12:23:47 +0000 (17:53 +0530)
committerIttay Stern <ittay.stern@att.com>
Tue, 6 Aug 2019 14:18:56 +0000 (14:18 +0000)
Change-Id: I1f275c2b4b814afc7c50e02e756312ce6923efe0
Issue-ID: VID-535
Signed-off-by: nandkumar <np00602065@techmahindra.com>
vid-app-common/src/main/java/org/onap/vid/controller/ViewLogController.java

index 92eba8b..5775b3c 100644 (file)
@@ -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;