From bd7d525eb93302682bf61269f098c5270e97e780 Mon Sep 17 00:00:00 2001 From: JosephKeenan Date: Wed, 19 May 2021 15:04:15 +0100 Subject: Update SonarQube Code Smell Issue-ID: CPS-89 Change-Id: I3a3e34b41ed98a0ab2c1accd438e2ec1d4a8d1cf Signed-off-by: JosephKeenan --- cps-ri/src/main/java/org/onap/cps/spi/query/CpsPathQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cps-ri') 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); -- cgit 1.2.3-korg