From fc3a611f8e707a62ca0e661cf66b1eb5606fc0be Mon Sep 17 00:00:00 2001 From: "Sindhuri.A" Date: Tue, 23 Apr 2019 11:44:11 +0530 Subject: Move String literal to left-hand side of equals Move String literal to left-hand side of equals MavenLikeVersioning class Issue-ID: SO-1490 Change-Id: Ib19caaf367fbf5b85488cd63270186020d46d3ef Signed-off-by: Sindhuri.A --- .../main/java/org/onap/so/db/catalog/utils/MavenLikeVersioning.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mso-catalog-db/src/main/java/org/onap/so/db/catalog/utils/MavenLikeVersioning.java b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/utils/MavenLikeVersioning.java index a7610fec92..98db12c288 100644 --- a/mso-catalog-db/src/main/java/org/onap/so/db/catalog/utils/MavenLikeVersioning.java +++ b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/utils/MavenLikeVersioning.java @@ -90,8 +90,8 @@ public class MavenLikeVersioning implements Serializable { public boolean isTheSameVersion(String versionToCompare) { if (versionToCompare == null && this.version == null) { return true; - } else if (versionToCompare == null || versionToCompare.trim().equals("") || this.version == null - || this.version.trim().equals("")) { + } else if (versionToCompare == null || "".equals(versionToCompare.trim()) || this.version == null + || "".equals(this.version.trim())) { return false; } String[] currentVersionArray = this.version.split("\\."); -- cgit 1.2.3-korg