diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/CentralAnalyzer.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/CentralAnalyzer.java index 4c66c133c..019b59aeb 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/CentralAnalyzer.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/CentralAnalyzer.java @@ -52,6 +52,9 @@ public class CentralAnalyzer extends AbstractFileTypeAnalyzer { */ private CentralSearch searcher; + /** + * Field indicating if the analyzer is enabled. + */ private boolean enabled = checkEnabled(); /** @@ -64,6 +67,11 @@ public class CentralAnalyzer extends AbstractFileTypeAnalyzer { return enabled; } + /** + * Determines if this analyzer is enabled + * + * @return true if the analyzer is enabled; otherwise false + */ private boolean checkEnabled() { boolean retval = false; diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/NexusAnalyzer.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/NexusAnalyzer.java index d6324d11e..d97c499c0 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/NexusAnalyzer.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/NexusAnalyzer.java @@ -79,8 +79,16 @@ public class NexusAnalyzer extends AbstractFileTypeAnalyzer { */ private NexusSearch searcher; + /** + * Field indicating if the analyzer is enabled. + */ private boolean enabled = checkEnabled(); + /** + * Determines if this analyzer is enabled + * + * @return true if the analyzer is enabled; otherwise false + */ private boolean checkEnabled() { /* Enable this analyzer ONLY if the Nexus URL has been set to something other than the default one (if it's the default one, we'll use the