aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorSooriyaa <soponraj@in.ibm.com>2018-09-12 14:44:13 +0530
committerSooriyaa <soponraj@in.ibm.com>2018-09-12 14:44:20 +0530
commit5a79e022277813eba9e92349e51ed0e3c5419dda (patch)
tree2d9f9b55fe25683a96fda8944d4bdbb739ee6c14 /src/main/java
parent393b00e29666cea35849ada88cdc6983b792120a (diff)
Move string literal to left of string comparison
Move string literal to left of string comparison Issue-ID: MUSIC-135 Change-Id: I622f2682e98c7927b66d11058da98c13b6b12942 Signed-off-by: Sooriyaa <soponraj@in.ibm.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/music/datastore/MusicDataStore.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/music/datastore/MusicDataStore.java b/src/main/java/org/onap/music/datastore/MusicDataStore.java
index 21b0053f..38f5fe9f 100644
--- a/src/main/java/org/onap/music/datastore/MusicDataStore.java
+++ b/src/main/java/org/onap/music/datastore/MusicDataStore.java
@@ -335,7 +335,7 @@ public class MusicDataStore {
ColumnDefinitions colInfo = row.getColumnDefinitions();
HashMap<String, Object> resultOutput = new HashMap<String, Object>();
for (Definition definition : colInfo) {
- if (!definition.getName().equals("vector_ts")) {
+ if (!"vector_ts".equals(definition.getName())) {
if(definition.getType().toString().toLowerCase().contains("blob")) {
resultOutput.put(definition.getName(),
getBlobValue(row, definition.getName(), definition.getType()));