Update SonarQube Code Smell 72/121472/2
authorJosephKeenan <joseph.keenan@est.tech>
Wed, 19 May 2021 14:04:15 +0000 (15:04 +0100)
committerRishi Chail <rishi.chail@est.tech>
Fri, 21 May 2021 09:52:21 +0000 (09:52 +0000)
Issue-ID: CPS-89

Change-Id: I3a3e34b41ed98a0ab2c1accd438e2ec1d4a8d1cf
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
cps-ri/src/main/java/org/onap/cps/spi/query/CpsPathQuery.java

index 554ec45..b27301b 100644 (file)
@@ -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);