mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-20 08:14:44 +01:00
checkstyle correction and removed the deprecated constructor
Former-commit-id: 02e0f7555ce43b2b5b161ba0536182f72a9561b2
This commit is contained in:
@@ -55,21 +55,24 @@ public class Engine {
|
|||||||
/**
|
/**
|
||||||
* The list of dependencies.
|
* 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.
|
* A Map of analyzers grouped by Analysis phase.
|
||||||
*/
|
*/
|
||||||
private final EnumMap<AnalysisPhase, List<Analyzer>> analyzers
|
private final EnumMap<AnalysisPhase, List<Analyzer>> analyzers;
|
||||||
= new EnumMap<AnalysisPhase, List<Analyzer>>(AnalysisPhase.class);
|
|
||||||
/**
|
/**
|
||||||
* A set of extensions supported by the 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.
|
* Creates a new Engine.
|
||||||
*/
|
*/
|
||||||
public 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;
|
boolean autoUpdate = true;
|
||||||
try {
|
try {
|
||||||
autoUpdate = Settings.getBoolean(Settings.KEYS.AUTO_UPDATE);
|
autoUpdate = Settings.getBoolean(Settings.KEYS.AUTO_UPDATE);
|
||||||
@@ -82,21 +85,6 @@ public class Engine {
|
|||||||
loadAnalyzers();
|
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).
|
* Loads the analyzers specified in the configuration file (or system properties).
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user