missing mode.phases

This commit is contained in:
Mark Rekveld
2017-07-10 18:14:42 +02:00
parent 7c0a7a0dd0
commit 11ef55920e

View File

@@ -583,7 +583,7 @@ public class Engine implements FileFilter, AutoCloseable {
} }
} }
} }
for (AnalysisPhase phase : AnalysisPhase.values()) { for (AnalysisPhase phase : mode.phases) {
final List<Analyzer> analyzerList = analyzers.get(phase); final List<Analyzer> analyzerList = analyzers.get(phase);
for (Analyzer a : analyzerList) { for (Analyzer a : analyzerList) {
@@ -788,7 +788,7 @@ public class Engine implements FileFilter, AutoCloseable {
*/ */
public List<Analyzer> getAnalyzers() { public List<Analyzer> getAnalyzers() {
final List<Analyzer> ret = new ArrayList<>(); final List<Analyzer> ret = new ArrayList<>();
for (AnalysisPhase phase : AnalysisPhase.values()) { for (AnalysisPhase phase : mode.phases) {
final List<Analyzer> analyzerList = analyzers.get(phase); final List<Analyzer> analyzerList = analyzers.get(phase);
ret.addAll(analyzerList); ret.addAll(analyzerList);
} }