@ThreadSafe public abstract class AbstractDependencyComparingAnalyzer extends AbstractAnalyzer
This analyzer ensures dependencies that should be grouped together, to remove excess noise from the report, are grouped. An example would be Spring, Spring Beans, Spring MVC, etc. If they are all for the same version and have the same relative path then these should be grouped into a single dependency under the core/main library.
Note, this grouping only works on dependencies with identified CVE entries
| Constructor and Description |
|---|
AbstractDependencyComparingAnalyzer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
analyzeDependency(Dependency ignore,
Engine engine)
Analyzes a set of dependencies.
|
protected abstract boolean |
evaluateDependencies(Dependency dependency,
Dependency nextDependency,
java.util.Set<Dependency> dependenciesToRemove)
Evaluates the dependencies
|
protected boolean |
getAnalyzed()
Returns a flag indicating if this analyzer has run.
|
boolean |
supportsParallelProcessing()
Does not support parallel processing as it only runs once and then
operates on all dependencies.
|
analyze, close, closeAnalyzer, getAnalyzerEnabledSettingKey, getSettings, initialize, isEnabled, prepare, prepareAnalyzer, setEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnalysisPhase, getNameprotected boolean getAnalyzed()
public final boolean supportsParallelProcessing()
supportsParallelProcessing in interface AnalyzersupportsParallelProcessing in class AbstractAnalyzerAbstractAnalyzer.analyze(Dependency, Engine)protected void analyzeDependency(Dependency ignore, Engine engine) throws AnalysisException
analyzeDependency in class AbstractAnalyzerignore - this analyzer ignores the dependency being analyzedengine - the engine that is scanning the dependenciesAnalysisException - is thrown if there is an error reading the JAR
file.protected abstract boolean evaluateDependencies(Dependency dependency, Dependency nextDependency, java.util.Set<Dependency> dependenciesToRemove)
dependency - a dependency to comparenextDependency - a dependency to comparedependenciesToRemove - a set of dependencies that will be removedCopyright© 2012-21 Jeremy Long. All Rights Reserved.