diff options
author | Manoop Talasila <talasila@research.att.com> | 2019-10-29 14:29:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-10-29 14:29:29 +0000 |
commit | beabe647ed84f9a5fea3e9633267e713e19f3750 (patch) | |
tree | b24086168eb30b8beed86a6a5096a7ea996d3698 /ecomp-sdk/epsdk-analytics/src/main/java | |
parent | 7589db2190a9b63d6cd3632e0f9694df88700f10 (diff) | |
parent | eae3e8b357d96bff29ce0b3086aed388754feaf2 (diff) |
Merge "Security Vulnerability in pom.xml fix"
Diffstat (limited to 'ecomp-sdk/epsdk-analytics/src/main/java')
-rw-r--r-- | ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/system/DbUtils.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/system/DbUtils.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/system/DbUtils.java index 67acdf9e..d528dc6d 100644 --- a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/system/DbUtils.java +++ b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/system/DbUtils.java @@ -45,7 +45,6 @@ import java.sql.SQLException; import java.sql.Statement; import java.sql.Types; import javax.sql.DataSource; -import org.apache.commons.lang3.StringUtils; import org.onap.portalsdk.analytics.error.RaptorException; import org.onap.portalsdk.analytics.error.ReportSQLException; import org.onap.portalsdk.analytics.model.runtime.ReportRuntime; @@ -213,7 +212,7 @@ public class DbUtils { try (final Connection con = getConnection();) { if (con != null) { try (final PreparedStatement preparedStatement = con.prepareStatement(sql);) { - if (StringUtils.isNotBlank(reportID)) { + if (!reportID.isEmpty()) { preparedStatement.setString(1, reportID); preparedStatement.setString(2, reportName); } else { |