From 95bc96437e81f65199bddd7516dc519f33a099f2 Mon Sep 17 00:00:00 2001 From: Sooriyaa Date: Wed, 5 Sep 2018 12:39:27 +0530 Subject: 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 --- src/main/java/org/onap/music/main/MusicCore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit 1.2.3-korg