mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
checkstyle/PMD updates
Former-commit-id: 3ea0d7bbe9842029bc1d2ab9d4bf168a27ab38e3
This commit is contained in:
@@ -209,14 +209,14 @@ public class Engine {
|
||||
final List<Analyzer> analyzerList = analyzers.get(phase);
|
||||
|
||||
for (Analyzer a : analyzerList) {
|
||||
Iterator<Dependency> itrDependencies = dependencies.iterator();
|
||||
final Iterator<Dependency> itrDependencies = dependencies.iterator();
|
||||
while (itrDependencies.hasNext()) {
|
||||
Dependency d = itrDependencies.next();
|
||||
final Dependency d = itrDependencies.next();
|
||||
if (a.supportsExtension(d.getFileExtension())) {
|
||||
try {
|
||||
a.analyze(d, this);
|
||||
//the following is mainly to deal with the DependencyBundlingAnalyzer
|
||||
if (a.getPostAnalysisAction() == Analyzer.PostAnalysisAction.REMOVE_JAR) {
|
||||
if (a.getPostAnalysisAction() == Analyzer.PostAnalysisAction.REMOVE_DEPENDENCY) {
|
||||
itrDependencies.remove();
|
||||
}
|
||||
} catch (AnalysisException ex) {
|
||||
|
||||
Reference in New Issue
Block a user