mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-20 16:24:11 +01:00
checkstyle fixes
Former-commit-id: 2bd6f330836c7dab07e5968ef845b4d48ede4abe
This commit is contained in:
@@ -26,8 +26,8 @@ import org.owasp.dependencycheck.dependency.Dependency;
|
|||||||
import org.owasp.dependencycheck.dependency.Identifier;
|
import org.owasp.dependencycheck.dependency.Identifier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This analyzer attempts to remove some well known false positives - specifically
|
* This analyzer attempts to remove some well known false positives -
|
||||||
* regarding the java runtime.
|
* specifically regarding the java runtime.
|
||||||
*
|
*
|
||||||
* @author Jeremy Long (jeremy.long@gmail.com)
|
* @author Jeremy Long (jeremy.long@gmail.com)
|
||||||
*/
|
*/
|
||||||
@@ -121,6 +121,7 @@ public class FalsePositiveAnalyzer extends AbstractAnalyzer {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Intended to remove spurious CPE entries.
|
* Intended to remove spurious CPE entries.
|
||||||
|
*
|
||||||
* @param dependency the dependency being analyzed
|
* @param dependency the dependency being analyzed
|
||||||
*/
|
*/
|
||||||
private void removeVersions(Dependency dependency) {
|
private void removeVersions(Dependency dependency) {
|
||||||
@@ -128,17 +129,18 @@ public class FalsePositiveAnalyzer extends AbstractAnalyzer {
|
|||||||
//cpe: cpe:/a:apache:axis2:1.4
|
//cpe: cpe:/a:apache:axis2:1.4
|
||||||
//cpe: cpe:/a:apache:axis:1.4
|
//cpe: cpe:/a:apache:axis:1.4
|
||||||
/* the above was identified from the evidence below:
|
/* the above was identified from the evidence below:
|
||||||
Source Name Value
|
Source Name Value
|
||||||
Manifest Bundle-Vendor Apache Software Foundation
|
Manifest Bundle-Vendor Apache Software Foundation
|
||||||
Manifest Bundle-Version 1.4
|
Manifest Bundle-Version 1.4
|
||||||
file name axis2-kernel-1.4.1
|
file name axis2-kernel-1.4.1
|
||||||
pom artifactid axis2-kernel
|
pom artifactid axis2-kernel
|
||||||
pom name Apache Axis2 - Kernel
|
pom name Apache Axis2 - Kernel
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes any CPE entries for the JDK/JRE unless the filename ends with rt.jar
|
* Removes any CPE entries for the JDK/JRE unless the filename ends with
|
||||||
|
* rt.jar
|
||||||
*
|
*
|
||||||
* @param dependency the dependency to remove JRE CPEs from
|
* @param dependency the dependency to remove JRE CPEs from
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -715,7 +715,6 @@ public class JarAnalyzer extends AbstractAnalyzer implements Analyzer {
|
|||||||
/**
|
/**
|
||||||
* Determines if the key value pair from the manifest is for an "import" type
|
* Determines if the key value pair from the manifest is for an "import" type
|
||||||
* entry for package names.
|
* entry for package names.
|
||||||
*
|
|
||||||
* @param key the key from the manifest
|
* @param key the key from the manifest
|
||||||
* @param value the value from the manifest
|
* @param value the value from the manifest
|
||||||
* @return true or false depending on if it is believed the entry is an "import" entry
|
* @return true or false depending on if it is believed the entry is an "import" entry
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ import java.io.IOException;
|
|||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
|
||||||
import java.util.SortedSet;
|
import java.util.SortedSet;
|
||||||
import java.util.TreeSet;
|
import java.util.TreeSet;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|||||||
@@ -128,7 +128,11 @@ public class Reference implements Serializable, Comparable<Reference> {
|
|||||||
hash = 67 * hash + (this.source != null ? this.source.hashCode() : 0);
|
hash = 67 * hash + (this.source != null ? this.source.hashCode() : 0);
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Implementation of the comparable interface.
|
||||||
|
* @param o the Reference being compared
|
||||||
|
* @return an integer indicating the ordering of the two objects
|
||||||
|
*/
|
||||||
public int compareTo(Reference o) {
|
public int compareTo(Reference o) {
|
||||||
if (source.equals(o.source)) {
|
if (source.equals(o.source)) {
|
||||||
if (name.equals(o.name)) {
|
if (name.equals(o.name)) {
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
package org.owasp.dependencycheck.dependency;
|
package org.owasp.dependencycheck.dependency;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.SortedSet;
|
import java.util.SortedSet;
|
||||||
import java.util.TreeSet;
|
import java.util.TreeSet;
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ import java.io.InputStream;
|
|||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.io.OutputStreamWriter;
|
import java.io.OutputStreamWriter;
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|||||||
Reference in New Issue
Block a user