summaryrefslogtreecommitdiffstats
path: root/plugins/reception-plugins
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-05-07 15:21:38 -0400
committerJim Hahn <jrh3@att.com>2021-05-07 15:22:15 -0400
commit17f060045b025a1f9f9c037600b3c4fbe14cea1e (patch)
treed4c0d472ff72f34fba80432b322014a1723bca57 /plugins/reception-plugins
parent8cd519ee397bd6661eddfeea1b989a99d1caac2e (diff)
Fix sonars in policy-distribution
Fixed: - more cases of "var" Issue-ID: POLICY-3285 Change-Id: I41345dfde611497e848b1d207b34eeda1c2c3feb Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'plugins/reception-plugins')
-rw-r--r--plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/file/FileSystemReceptionHandlerConfigurationParameterGroup.java2
1 files changed, 1 insertions, 1 deletions
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;
}