From 5ca5bca3df6124214752ddc818394cf2cc759336 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Tue, 11 Nov 2014 15:13:01 -0500 Subject: [PATCH] updated javadoc Former-commit-id: 7b00991a0cf90ca34c8c54b8297014b01e676b04 --- .../owasp/dependencycheck/analyzer/CentralAnalyzer.java | 8 ++++++++ .../org/owasp/dependencycheck/analyzer/NexusAnalyzer.java | 8 ++++++++ 2 files changed, 16 insertions(+) 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