From 5a79e022277813eba9e92349e51ed0e3c5419dda Mon Sep 17 00:00:00 2001 From: Sooriyaa Date: Wed, 12 Sep 2018 14:44:13 +0530 Subject: 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 --- src/main/java/org/onap/music/datastore/MusicDataStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') 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 resultOutput = new HashMap(); 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())); -- cgit 1.2.3-korg