summaryrefslogtreecommitdiffstats
path: root/appc-core
diff options
context:
space:
mode:
authorSudarshan Kumar <sudars19@in.ibm.com>2019-02-20 16:06:07 +0530
committerTakamune Cho <takamune.cho@att.com>2019-02-21 14:05:43 +0000
commitd09d256b6d21f32dbe9e992915c4a534fc5e467f (patch)
treee166743c0a1fa11863cc353d5875f60ff50873bc /appc-core
parent4dc98f06ad922fdb4b647114f37e78024df118a3 (diff)
Sonar Fix : Time.java
Sonar Fix : Time.java - Removed printStackTrace Issue-ID: APPC-1399 Change-Id: Icc39933cf656ffd79917596ce686f09b8c638843 Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
Diffstat (limited to 'appc-core')
-rw-r--r--appc-core/appc-common-bundle/java/org/onap/appc/util/Time.java6
1 files changed, 4 insertions, 2 deletions
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;