From e473ef36b1668f56dec03810f07d6bcf243dc4e3 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sat, 8 Feb 2014 12:24:25 -0500 Subject: [PATCH] removed analysisExceptions for issue #46 Former-commit-id: d18690baa5de2ad38a46936e5d3e64681b2ccc29 --- .../dependency/Dependency.java | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java index 74bc9502a..8fbac5d23 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java @@ -20,8 +20,6 @@ package org.owasp.dependencycheck.dependency; import java.io.File; import java.io.IOException; import java.security.NoSuchAlgorithmException; -import java.util.ArrayList; -import java.util.List; import java.util.Set; import java.util.SortedSet; import java.util.TreeSet; @@ -327,37 +325,6 @@ public class Dependency implements Comparable { public EvidenceCollection getVersionEvidence() { return this.versionEvidence; } - /** - * A list of exceptions that occurred during analysis of this dependency. - */ - private List analysisExceptions = new ArrayList(); - - /** - * Get the value of analysisExceptions. - * - * @return the value of analysisExceptions - */ - public List getAnalysisExceptions() { - return analysisExceptions; - } - - /** - * Set the value of analysisExceptions. - * - * @param analysisExceptions new value of analysisExceptions - */ - public void setAnalysisExceptions(List analysisExceptions) { - this.analysisExceptions = analysisExceptions; - } - - /** - * Adds an exception to the analysis exceptions collection. - * - * @param ex an exception. - */ - public void addAnalysisException(Exception ex) { - this.analysisExceptions.add(ex); - } /** * The description of the JAR file. */ @@ -544,10 +511,6 @@ public class Dependency implements Comparable { if (this.versionEvidence != other.versionEvidence && (this.versionEvidence == null || !this.versionEvidence.equals(other.versionEvidence))) { return false; } - if (this.analysisExceptions != other.analysisExceptions - && (this.analysisExceptions == null || !this.analysisExceptions.equals(other.analysisExceptions))) { - return false; - } if ((this.description == null) ? (other.description != null) : !this.description.equals(other.description)) { return false; } @@ -582,7 +545,6 @@ public class Dependency implements Comparable { hash = 47 * hash + (this.vendorEvidence != null ? this.vendorEvidence.hashCode() : 0); hash = 47 * hash + (this.productEvidence != null ? this.productEvidence.hashCode() : 0); hash = 47 * hash + (this.versionEvidence != null ? this.versionEvidence.hashCode() : 0); - hash = 47 * hash + (this.analysisExceptions != null ? this.analysisExceptions.hashCode() : 0); hash = 47 * hash + (this.description != null ? this.description.hashCode() : 0); hash = 47 * hash + (this.license != null ? this.license.hashCode() : 0); hash = 47 * hash + (this.vulnerabilities != null ? this.vulnerabilities.hashCode() : 0);