From: Sudarshan Kumar Date: Wed, 20 Feb 2019 10:36:07 +0000 (+0530) Subject: Sonar Fix : Time.java X-Git-Tag: 1.5.0~193 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d09d256b6d21f32dbe9e992915c4a534fc5e467f;p=appc.git Sonar Fix : Time.java Sonar Fix : Time.java - Removed printStackTrace Issue-ID: APPC-1399 Change-Id: Icc39933cf656ffd79917596ce686f09b8c638843 Signed-off-by: Sudarshan Kumar --- 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;