From d09d256b6d21f32dbe9e992915c4a534fc5e467f Mon Sep 17 00:00:00 2001 From: Sudarshan Kumar Date: Wed, 20 Feb 2019 16:06:07 +0530 Subject: Sonar Fix : Time.java Sonar Fix : Time.java - Removed printStackTrace Issue-ID: APPC-1399 Change-Id: Icc39933cf656ffd79917596ce686f09b8c638843 Signed-off-by: Sudarshan Kumar --- appc-core/appc-common-bundle/java/org/onap/appc/util/Time.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'appc-core/appc-common-bundle/java') diff --git a/appc-core/appc-common-bundle/java/org/onap/appc/util/Time.java b/appc-core/appc-common-bundle/java/org/onap/appc/util/Time.java index 5e397701a..dfd1ee769 100644 --- a/appc-core/appc-common-bundle/java/org/onap/appc/util/Time.java +++ b/appc-core/appc-common-bundle/java/org/onap/appc/util/Time.java @@ -5,7 +5,9 @@ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2017 Amdocs - * ============================================================================= + * ================================================================================ + * Modifications Copyright (c) 2019 IBM + * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -211,7 +213,7 @@ public final class Time { try { xmlDatatypeFactory = DatatypeFactory.newInstance(); } catch (DatatypeConfigurationException e) { - e.printStackTrace(System.err); + LOG.error("Error while getting DatatypeFactory ::", e); } } return xmlDatatypeFactory; -- cgit 1.2.3-korg