mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-25 02:21:28 +01:00
checkstyle fixes
Former-commit-id: 213d1375060723f9bded7680cf07ad0f790cd71c
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
** This file is part of Dependency-Check.
|
* This file is part of Dependency-Check.
|
||||||
*
|
*
|
||||||
** Dependency-Check is free software: you can redistribute it and/or modify it
|
* Dependency-Check is free software: you can redistribute it and/or modify it
|
||||||
* under the terms of the GNU General Public License as published by the Free
|
* under the terms of the GNU General Public License as published by the Free
|
||||||
* Software Foundation, either version 3 of the License, or (at your option) any
|
* Software Foundation, either version 3 of the License, or (at your option) any
|
||||||
* later version.
|
* later version.
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ public class DependencyBundlingAnalyzer extends AbstractAnalyzer implements Anal
|
|||||||
* @return a string representing the base path.
|
* @return a string representing the base path.
|
||||||
*/
|
*/
|
||||||
private String getBaseRepoPath(final String path) {
|
private String getBaseRepoPath(final String path) {
|
||||||
int pos = path.indexOf("repository") + 10;
|
int pos = path.indexOf("repository" + File.separator) + 11;
|
||||||
if (pos < 0) {
|
if (pos < 0) {
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -376,9 +376,7 @@ public class JarAnalyzer extends AbstractAnalyzer implements Analyzer {
|
|||||||
JarFile jar = null;
|
JarFile jar = null;
|
||||||
try {
|
try {
|
||||||
jar = new JarFile(dependency.getActualFilePath());
|
jar = new JarFile(dependency.getActualFilePath());
|
||||||
|
|
||||||
final java.util.Enumeration en = jar.entries();
|
final java.util.Enumeration en = jar.entries();
|
||||||
|
|
||||||
final HashMap<String, Integer> level0 = new HashMap<String, Integer>();
|
final HashMap<String, Integer> level0 = new HashMap<String, Integer>();
|
||||||
final HashMap<String, Integer> level1 = new HashMap<String, Integer>();
|
final HashMap<String, Integer> level1 = new HashMap<String, Integer>();
|
||||||
final HashMap<String, Integer> level2 = new HashMap<String, Integer>();
|
final HashMap<String, Integer> level2 = new HashMap<String, Integer>();
|
||||||
@@ -438,7 +436,6 @@ public class JarAnalyzer extends AbstractAnalyzer implements Analyzer {
|
|||||||
}
|
}
|
||||||
final EvidenceCollection vendor = dependency.getVendorEvidence();
|
final EvidenceCollection vendor = dependency.getVendorEvidence();
|
||||||
final EvidenceCollection product = dependency.getProductEvidence();
|
final EvidenceCollection product = dependency.getProductEvidence();
|
||||||
|
|
||||||
for (String s : level0.keySet()) {
|
for (String s : level0.keySet()) {
|
||||||
if (!"org".equals(s) && !"com".equals(s)) {
|
if (!"org".equals(s) && !"com".equals(s)) {
|
||||||
vendor.addWeighting(s);
|
vendor.addWeighting(s);
|
||||||
|
|||||||
Reference in New Issue
Block a user