diff options
author | anushadasari <danush10@in.ibm.com> | 2019-11-20 16:20:09 +0530 |
---|---|---|
committer | anushadasari <danush10@in.ibm.com> | 2019-11-20 16:20:20 +0530 |
commit | b6128c2d522b60e432c0d957088428470721e534 (patch) | |
tree | 58f539788ae7d752b2b58bfea8c822153163df80 /cmso-service/src | |
parent | bfbd597d4115d5cf94fb760cda72d3abd1f225ba (diff) |
Move "*" string literal on left side of string
It is preferable to place string literals on the left-hand side of an equals() or equalsIgnoreCase() method call.
Issue-ID: OPTFRA-647
Change-Id: Ie4b1b7b0e56bb88338c9d64219db2da88728ca46
Signed-off-by: anushadasari <danush10@in.ibm.com>
Diffstat (limited to 'cmso-service/src')
-rw-r--r-- | cmso-service/src/main/java/org/onap/optf/cmso/filters/CmsoClientFilters.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmso-service/src/main/java/org/onap/optf/cmso/filters/CmsoClientFilters.java b/cmso-service/src/main/java/org/onap/optf/cmso/filters/CmsoClientFilters.java index d43c60b..893d74c 100644 --- a/cmso-service/src/main/java/org/onap/optf/cmso/filters/CmsoClientFilters.java +++ b/cmso-service/src/main/java/org/onap/optf/cmso/filters/CmsoClientFilters.java @@ -72,7 +72,7 @@ public class CmsoClientFilters implements ClientRequestFilter, ClientResponseFil String transactionId = (String) headers.getFirst(MessageHeaders.HeadersEnum.TransactionID.toString()); String mdcId = MDC.get(MDC_KEY_REQUEST_ID); - if (transactionId == null || transactionId.equals("")) { + if (transactionId == null || "".equals(transactionId)) { if (mdcId != null) { headers.add(HeadersEnum.TransactionID.toString(), mdcId); } |