Sonar Fix : Time.java 17/78817/2
authorSudarshan Kumar <sudars19@in.ibm.com>
Wed, 20 Feb 2019 10:36:07 +0000 (16:06 +0530)
committerTakamune Cho <takamune.cho@att.com>
Thu, 21 Feb 2019 14:05:43 +0000 (14:05 +0000)
Sonar Fix : Time.java - Removed printStackTrace

Issue-ID: APPC-1399
Change-Id: Icc39933cf656ffd79917596ce686f09b8c638843
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
appc-core/appc-common-bundle/java/org/onap/appc/util/Time.java

index 5e39770..dfd1ee7 100644 (file)
@@ -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;