mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 01:51:49 +01:00
object will never be null (coverity scan)
This commit is contained in:
@@ -86,7 +86,7 @@ public abstract class AbstractSuppressionAnalyzer extends AbstractAnalyzer {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public synchronized void prepareAnalyzer(Engine engine) throws InitializationException {
|
public synchronized void prepareAnalyzer(Engine engine) throws InitializationException {
|
||||||
if (rules == null || rules.isEmpty()) {
|
if (rules.isEmpty()) {
|
||||||
try {
|
try {
|
||||||
loadSuppressionBaseData();
|
loadSuppressionBaseData();
|
||||||
} catch (SuppressionParseException ex) {
|
} catch (SuppressionParseException ex) {
|
||||||
@@ -103,7 +103,7 @@ public abstract class AbstractSuppressionAnalyzer extends AbstractAnalyzer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException {
|
protected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException {
|
||||||
if (rules == null || rules.isEmpty()) {
|
if (rules.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (final SuppressionRule rule : rules) {
|
for (final SuppressionRule rule : rules) {
|
||||||
|
|||||||
Reference in New Issue
Block a user