checkstyle correction and removed the deprecated constructor

Former-commit-id: 02e0f7555ce43b2b5b161ba0536182f72a9561b2
This commit is contained in:
Jeremy Long
2014-01-25 06:42:03 -05:00
parent 4f79efedc9
commit 438622d450

View File

@@ -55,21 +55,24 @@ public class Engine {
/**
* The list of dependencies.
*/
private final List<Dependency> dependencies = new ArrayList<Dependency>();
private final List<Dependency> dependencies;
/**
* A Map of analyzers grouped by Analysis phase.
*/
private final EnumMap<AnalysisPhase, List<Analyzer>> analyzers
= new EnumMap<AnalysisPhase, List<Analyzer>>(AnalysisPhase.class);
private final EnumMap<AnalysisPhase, List<Analyzer>> analyzers;
/**
* A set of extensions supported by the analyzers.
*/
private final Set<String> extensions = new HashSet<String>();
private final Set<String> extensions;
/**
* Creates a new Engine.
*/
public Engine() {
this.extensions = new HashSet<String>();
this.dependencies = new ArrayList<Dependency>();
this.analyzers = new EnumMap<AnalysisPhase, List<Analyzer>>(AnalysisPhase.class);
boolean autoUpdate = true;
try {
autoUpdate = Settings.getBoolean(Settings.KEYS.AUTO_UPDATE);
@@ -82,21 +85,6 @@ public class Engine {
loadAnalyzers();
}
/**
* Creates a new Engine.
*
* @param autoUpdate indicates whether or not data should be updated from the Internet
* @deprecated This function should no longer be used; the autoupdate flag should be set using:
* <code>Settings.setBoolean(Settings.KEYS.AUTO_UPDATE, value);</code>
*/
@Deprecated
public Engine(boolean autoUpdate) {
if (autoUpdate) {
doUpdates();
}
loadAnalyzers();
}
/**
* Loads the analyzers specified in the configuration file (or system properties).
*/