diff options
author | 2018-11-15 15:17:21 +0900 | |
---|---|---|
committer | 2018-11-15 15:23:49 +0900 | |
commit | aeda9528a7dbfed6c7a06b85bd39ff71006d1549 (patch) | |
tree | 20f13067e679d12fecaaa3e4958d901021817a04 /UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/service/VESAdapterInitializer.java | |
parent | cf300b2c58fecf89840547f8ef1b20c6caf935b9 (diff) |
Fix sonar issues in dcaegen2/services/mapper
Fix blocker and critical sonar issues
Issue-ID: DCAEGEN2-938
Change-Id: I0e8220100c67abeed9fe8db1d220cc06081c60f5
Signed-off-by: Parshad Patel <pars.patel@samsung.com>
Diffstat (limited to 'UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/service/VESAdapterInitializer.java')
-rw-r--r-- | UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/service/VESAdapterInitializer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/service/VESAdapterInitializer.java b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/service/VESAdapterInitializer.java index 2cb4b8f..3895421 100644 --- a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/service/VESAdapterInitializer.java +++ b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/service/VESAdapterInitializer.java @@ -29,6 +29,7 @@ import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.apache.commons.codec.binary.Hex; @@ -243,7 +244,7 @@ public class VESAdapterInitializer implements CommandLineRunner, Ordered { pstmt11.executeUpdate(); LOGGER.info("CREATE TABLE IF NOT EXISTS executed successfully...."); - if ((bytesArray.length > 0) && (!bytesArray.toString().equals(""))) { + if ((bytesArray.length > 0) && (!Arrays.toString(bytesArray).equals(""))) { LOGGER.debug("2Connection object:" + con.toString()); try (PreparedStatement pstmt = con.prepareStatement("INSERT INTO " + MappingFileTableName |