Move string literal to left of string comparison 29/64629/1
authorSooriyaa <soponraj@in.ibm.com>
Wed, 5 Sep 2018 07:09:27 +0000 (12:39 +0530)
committerSooriyaa <soponraj@in.ibm.com>
Wed, 5 Sep 2018 07:09:49 +0000 (12:39 +0530)
Move string literal to left of string comparison

Issue-ID: MUSIC-131
Change-Id: I210469c9c7e827df51f20fb7f580282a145b4464
Signed-off-by: Sooriyaa <soponraj@in.ibm.com>
src/main/java/org/onap/music/main/MusicCore.java

index aaaeae3..9f7b060 100644 (file)
@@ -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();