From dfa2e48a4e87198eb323c223c6d6d18a1fa2464e Mon Sep 17 00:00:00 2001 From: Seshu-Kumar-M Date: Wed, 6 Sep 2017 19:47:14 +0800 Subject: sonar blocker issue fixes Issue ID: SO-98 Change-Id: Ida8eba238c3c0ca867cc40a58d00ddcd74417921 Signed-off-by: Seshu-Kumar-M --- .../bpmn/plugin/urnmap/resources/URNResource.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'bpmn/MSOURN-plugin') diff --git a/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNResource.java b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNResource.java index 5ef77eec40..1a4c16dc7a 100644 --- a/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNResource.java +++ b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNResource.java @@ -82,21 +82,21 @@ public class URNResource extends AbstractCockpitPluginResource{ } catch (Exception e) { - msoLogger.debug("Exception in getUrnDataMap " + e); + msoLogger.debug("Exception in getUrnDataMap ", e); } finally { if(psData != null){ try { psData.close(); conn.close(); } catch (SQLException e) { - msoLogger.debug("Exception while closing the PreparedStatement: " + e); + msoLogger.debug("Exception while closing the PreparedStatement: ", e); } } if(conn != null){ try { conn.close(); } catch (SQLException e) { - msoLogger.debug("Exception while closing the connection: " + e); + msoLogger.debug("Exception while closing the connection: ", e); } } } @@ -143,7 +143,7 @@ public class URNResource extends AbstractCockpitPluginResource{ } catch (Exception e) { - msoLogger.debug("Exception in DBConnection " + e); + msoLogger.debug("Exception in DBConnection ", e); } return conn; @@ -183,21 +183,21 @@ public class URNResource extends AbstractCockpitPluginResource{ } catch (Exception e) { - msoLogger.debug("Exception in insertNewRow " + e); + msoLogger.debug("Exception in insertNewRow ", e); }finally { if(psData != null){ try { psData.close(); conn.close(); } catch (SQLException e) { - msoLogger.debug("Exception while closing the PreparedStatement: " + e); + msoLogger.debug("Exception while closing the PreparedStatement: ", e); } } if(conn != null){ try { conn.close(); } catch (SQLException e) { - msoLogger.debug("Exception while closing the connection: " + e); + msoLogger.debug("Exception while closing the connection: ", e); } } } @@ -219,21 +219,21 @@ public class URNResource extends AbstractCockpitPluginResource{ } catch (Exception e) { - msoLogger.debug("Exception in PersistData " + e); + msoLogger.debug("Exception in PersistData ", e); }finally { if(psData != null){ try { psData.close(); conn.close(); } catch (SQLException e) { - msoLogger.debug("Exception while closing the PreparedStatement: " + e); + msoLogger.debug("Exception while closing the PreparedStatement: ", e); } } if(conn != null){ try { conn.close(); } catch (SQLException e) { - msoLogger.debug("Exception while closing the connection: " + e); + msoLogger.debug("Exception while closing the connection: ", e); } } } -- cgit 1.2.3-korg