diff options
author | nandkumar <np00602065@techmahindra.com> | 2019-08-06 17:53:47 +0530 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-08-06 14:18:56 +0000 |
commit | 0f4ce01009431809482c3d9fb041a565279242c7 (patch) | |
tree | 95915d9a8a7c7956c17e15d14fa7d077c3de931d /vid-app-common/src/main/java/org | |
parent | f20517410a174c82115e289320296d0d78f57a28 (diff) |
Sonar Critical: Make dateFormat an instance variable
Change-Id: I1f275c2b4b814afc7c50e02e756312ce6923efe0
Issue-ID: VID-535
Signed-off-by: nandkumar <np00602065@techmahindra.com>
Diffstat (limited to 'vid-app-common/src/main/java/org')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/controller/ViewLogController.java | 3 |
1 files changed, 2 insertions, 1 deletions
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; |