mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 18:11:47 +01:00
checkstyle fixes
Former-commit-id: 5281b8ecb5163ce4a0a6464fea4f6d2a4baffafd
This commit is contained in:
@@ -81,7 +81,7 @@ public final class FileUtils {
|
|||||||
* @throws IOException is thrown if the path could not be decoded
|
* @throws IOException is thrown if the path could not be decoded
|
||||||
*/
|
*/
|
||||||
public static File getDataDirectory(String configuredFilePath, Class clazz) throws IOException {
|
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()) {
|
if (file.exists() && file.isDirectory() && file.canWrite()) {
|
||||||
return new File(file.getCanonicalPath());
|
return new File(file.getCanonicalPath());
|
||||||
} else {
|
} else {
|
||||||
@@ -93,7 +93,7 @@ public final class FileUtils {
|
|||||||
} else {
|
} else {
|
||||||
exePath = new File(".");
|
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());
|
return new File(path.getCanonicalPath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user