fixed bug where the analyzers were not being closed

Former-commit-id: 50f1859e79cf11a19837a389b4edd3c563d2c7c8
This commit is contained in:
Jeremy Long
2014-03-23 23:06:14 -04:00
parent 5028216058
commit 534b2e59a0

View File

@@ -311,7 +311,7 @@ public class Engine {
for (Dependency d : dependencySet) { for (Dependency d : dependencySet) {
boolean shouldAnalyze = true; boolean shouldAnalyze = true;
if (a instanceof FileTypeAnalyzer) { if (a instanceof FileTypeAnalyzer) {
FileTypeAnalyzer fAnalyzer = (FileTypeAnalyzer) a; final FileTypeAnalyzer fAnalyzer = (FileTypeAnalyzer) a;
shouldAnalyze = fAnalyzer.supportsExtension(d.getFileExtension()); shouldAnalyze = fAnalyzer.supportsExtension(d.getFileExtension());
} }
if (shouldAnalyze) { if (shouldAnalyze) {
@@ -331,7 +331,7 @@ public class Engine {
} }
} }
} }
initializeAnalyzer(a); closeAnalyzer(a);
} }
} }