From 17f060045b025a1f9f9c037600b3c4fbe14cea1e Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Fri, 7 May 2021 15:21:38 -0400 Subject: Fix sonars in policy-distribution Fixed: - more cases of "var" Issue-ID: POLICY-3285 Change-Id: I41345dfde611497e848b1d207b34eeda1c2c3feb Signed-off-by: Jim Hahn --- .../file/FileSystemReceptionHandlerConfigurationParameterGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/file/FileSystemReceptionHandlerConfigurationParameterGroup.java b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/file/FileSystemReceptionHandlerConfigurationParameterGroup.java index 44e89c07..a1d1d663 100644 --- a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/file/FileSystemReceptionHandlerConfigurationParameterGroup.java +++ b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/file/FileSystemReceptionHandlerConfigurationParameterGroup.java @@ -70,7 +70,7 @@ public class FileSystemReceptionHandlerConfigurationParameterGroup extends Recep */ private ValidationResult validatePathElement(final String element, final String elementName) { if (element != null) { - final File file = new File(element); + final var file = new File(element); if (file.exists() && file.isDirectory()) { return null; } -- cgit 1.2.3-korg