From a3e4adb0af3ed15766dbd2e790c6a53ad2dfdf4c Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Mon, 27 May 2013 19:54:41 -0400 Subject: [PATCH] checkstyle fixes Former-commit-id: 4585dce6788c08f6e63a0bb34572874f7eb02877 --- src/main/java/org/owasp/dependencycheck/utils/FileUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/owasp/dependencycheck/utils/FileUtils.java b/src/main/java/org/owasp/dependencycheck/utils/FileUtils.java index 1949b8d83..e37ccd2b6 100644 --- a/src/main/java/org/owasp/dependencycheck/utils/FileUtils.java +++ b/src/main/java/org/owasp/dependencycheck/utils/FileUtils.java @@ -81,7 +81,7 @@ public final class FileUtils { * @throws IOException is thrown if the path could not be decoded */ public static File getDataDirectory(String configuredFilePath, Class clazz) throws IOException { - File file = new File(configuredFilePath); + final File file = new File(configuredFilePath); if (file.exists() && file.isDirectory() && file.canWrite()) { return new File(file.getCanonicalPath()); } else { @@ -93,7 +93,7 @@ public final class FileUtils { } else { exePath = new File("."); } - File path = new File(exePath.getCanonicalFile() + File.separator + configuredFilePath); + final File path = new File(exePath.getCanonicalFile() + File.separator + configuredFilePath); return new File(path.getCanonicalPath()); } }