checkstyle/PMD updates

Former-commit-id: 3ea0d7bbe9842029bc1d2ab9d4bf168a27ab38e3
This commit is contained in:
Jeremy Long
2013-04-20 11:49:59 -04:00
parent 0ad97dea0e
commit dba1e0b316
9 changed files with 59 additions and 44 deletions

View File

@@ -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) {