From 2ccae9f4342bc6090787f5f269664b213a78d377 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Fri, 28 Mar 2014 05:28:17 -0400 Subject: [PATCH] added back in scan methods that were removed by mistake Former-commit-id: c4a26c76c2668a2b635f361a55d3c840a842f6f7 --- .../org/owasp/dependencycheck/Engine.java | 54 ++++++++++--------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/Engine.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/Engine.java index daf789935..6440380c2 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/Engine.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/Engine.java @@ -183,32 +183,34 @@ public class Engine { } } -// /** -// * Scans an array of files or directories. If a directory is specified, it will be scanned recursively. Any -// * dependencies identified are added to the dependency collection. -// * -// * @since v0.3.2.5 -// * -// * @param files an array of paths to files or directories to be analyzed. -// */ -// public void scan(File[] files) { -// for (File file : files) { -// scan(file); -// } -// } -// /** -// * Scans a list of files or directories. If a directory is specified, it will be scanned recursively. Any -// * dependencies identified are added to the dependency collection. -// * -// * @since v0.3.2.5 -// * -// * @param files a set of paths to files or directories to be analyzed. -// */ -// public void scan(Set files) { -// for (File file : files) { -// scan(file); -// } -// } + /** + * Scans an array of files or directories. If a directory is specified, it will be scanned recursively. Any + * dependencies identified are added to the dependency collection. + * + * @since v0.3.2.5 + * + * @param files an array of paths to files or directories to be analyzed. + */ + public void scan(File[] files) { + for (File file : files) { + scan(file); + } + } + + /** + * Scans a list of files or directories. If a directory is specified, it will be scanned recursively. Any + * dependencies identified are added to the dependency collection. + * + * @since v0.3.2.5 + * + * @param files a set of paths to files or directories to be analyzed. + */ + public void scan(Set files) { + for (File file : files) { + scan(file); + } + } + /** * Scans a list of files or directories. If a directory is specified, it will be scanned recursively. Any * dependencies identified are added to the dependency collection.