summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosephKeenan <joseph.keenan@est.tech>2021-05-19 15:04:15 +0100
committerRishi Chail <rishi.chail@est.tech>2021-05-21 09:52:21 +0000
commitbd7d525eb93302682bf61269f098c5270e97e780 (patch)
treec9eecc0ee7c9f5991b113f3af60983a455c04b68
parentb42a3ced30877da19ce205c66539e4a286ccd458 (diff)
Update SonarQube Code Smell
Issue-ID: CPS-89 Change-Id: I3a3e34b41ed98a0ab2c1accd438e2ec1d4a8d1cf Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
-rw-r--r--cps-ri/src/main/java/org/onap/cps/spi/query/CpsPathQuery.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/query/CpsPathQuery.java b/cps-ri/src/main/java/org/onap/cps/spi/query/CpsPathQuery.java
index 554ec45ed6..b27301baec 100644
--- a/cps-ri/src/main/java/org/onap/cps/spi/query/CpsPathQuery.java
+++ b/cps-ri/src/main/java/org/onap/cps/spi/query/CpsPathQuery.java
@@ -77,7 +77,7 @@ public class CpsPathQuery {
*/
public static CpsPathQuery createFrom(final String cpsPathSource) {
var cpsPath = cpsPathSource;
- final CpsPathQuery cpsPathQuery = new CpsPathQuery();
+ final var cpsPathQuery = new CpsPathQuery();
var matcher = ANCESTOR_AXIS_PATTERN.matcher(cpsPath);
if (matcher.matches()) {
cpsPath = matcher.group(1);