summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSooriyaa <soponraj@in.ibm.com>2018-09-05 12:39:27 +0530
committerSooriyaa <soponraj@in.ibm.com>2018-09-05 12:39:49 +0530
commit95bc96437e81f65199bddd7516dc519f33a099f2 (patch)
tree02311fbcdb5d4f878367da2be7e478f358aad9fa
parent36e2dab449eae8ede28200f95bfaec2ab23bd486 (diff)
Move string literal to left of string comparison
Move string literal to left of string comparison Issue-ID: MUSIC-131 Change-Id: I210469c9c7e827df51f20fb7f580282a145b4464 Signed-off-by: Sooriyaa <soponraj@in.ibm.com>
-rw-r--r--src/main/java/org/onap/music/main/MusicCore.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/music/main/MusicCore.java b/src/main/java/org/onap/music/main/MusicCore.java
index aaaeae34..9f7b060b 100644
--- a/src/main/java/org/onap/music/main/MusicCore.java
+++ b/src/main/java/org/onap/music/main/MusicCore.java
@@ -125,7 +125,7 @@ public class MusicCore {
long start = System.currentTimeMillis();
if (mDstoreHandle == null) {
// Quick Fix - Best to put this into every call to getDSHandle?
- if (! MusicUtil.getMyCassaHost().equals("localhost") ) {
+ if (! "localhost".equals(MusicUtil.getMyCassaHost())) {
mDstoreHandle = new MusicDataStore(MusicUtil.getMyCassaHost());
} else {
mDstoreHandle = new MusicDataStore();