mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 09:31:32 +01:00
minor code cleanup
This commit is contained in:
@@ -291,7 +291,7 @@ public class JarAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
LOGGER.debug("Reading pom entry: {}", path);
|
LOGGER.debug("Reading pom entry: {}", path);
|
||||||
Properties pomProperties = null;
|
Properties pomProperties = null;
|
||||||
try {
|
try {
|
||||||
if (externalPom == null) {
|
if (externalPom == null) { //pom in the local repo doesn't have a properties file
|
||||||
pomProperties = retrievePomProperties(path, jar);
|
pomProperties = retrievePomProperties(path, jar);
|
||||||
}
|
}
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
@@ -1013,13 +1013,11 @@ public class JarAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
|
|
||||||
if (list.size() == 2) {
|
if (list.size() == 2) {
|
||||||
addEntry(product, list.get(1));
|
addEntry(product, list.get(1));
|
||||||
}
|
} else if (list.size() == 3) {
|
||||||
if (list.size() == 3) {
|
|
||||||
addEntry(vendor, list.get(1));
|
addEntry(vendor, list.get(1));
|
||||||
addEntry(product, list.get(1));
|
addEntry(product, list.get(1));
|
||||||
addEntry(product, list.get(2));
|
addEntry(product, list.get(2));
|
||||||
}
|
} else if (list.size() >= 4) {
|
||||||
if (list.size() >= 4) {
|
|
||||||
addEntry(vendor, list.get(1));
|
addEntry(vendor, list.get(1));
|
||||||
addEntry(vendor, list.get(2));
|
addEntry(vendor, list.get(2));
|
||||||
addEntry(product, list.get(1));
|
addEntry(product, list.get(1));
|
||||||
|
|||||||
Reference in New Issue
Block a user