mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-17 23:04:07 +01:00
checkstyle corrections
Former-commit-id: 4f20366676c43817c8f20200b47f6952c866a3a2
This commit is contained in:
@@ -167,11 +167,11 @@ public class Engine {
|
|||||||
*/
|
*/
|
||||||
public void scan(String path) {
|
public void scan(String path) {
|
||||||
if (path.matches("^.*[\\/]\\*\\.[^\\/:*|?<>\"]+$")) {
|
if (path.matches("^.*[\\/]\\*\\.[^\\/:*|?<>\"]+$")) {
|
||||||
String[] parts = path.split("\\*\\.");
|
final String[] parts = path.split("\\*\\.");
|
||||||
String[] ext = new String[]{parts[parts.length - 1]};
|
final String[] ext = new String[]{parts[parts.length - 1]};
|
||||||
File dir = new File(path.substring(0, path.length() - ext[0].length() - 2));
|
final File dir = new File(path.substring(0, path.length() - ext[0].length() - 2));
|
||||||
if (dir.isDirectory()) {
|
if (dir.isDirectory()) {
|
||||||
List<File> files = (List<File>) org.apache.commons.io.FileUtils.listFiles(dir, ext, true);
|
final List<File> files = (List<File>) org.apache.commons.io.FileUtils.listFiles(dir, ext, true);
|
||||||
scan(files);
|
scan(files);
|
||||||
} else {
|
} else {
|
||||||
final String msg = String.format("Invalid file path provided to scan '%s'", path);
|
final String msg = String.format("Invalid file path provided to scan '%s'", path);
|
||||||
|
|||||||
Reference in New Issue
Block a user