mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 18:11:47 +01:00
checkstyle/pmd/findbugs correction(s)
This commit is contained in:
@@ -579,7 +579,7 @@ public class JarAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String projectURL = pom.getProjectURL();
|
String projectURL = pom.getProjectURL();
|
||||||
if(projectURL != null && !projectURL.trim().isEmpty()) {
|
if (projectURL != null && !projectURL.trim().isEmpty()) {
|
||||||
dependency.getVendorEvidence().addEvidence("pom", "url", projectURL, Confidence.HIGHEST);
|
dependency.getVendorEvidence().addEvidence("pom", "url", projectURL, Confidence.HIGHEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -792,11 +792,10 @@ public class JarAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final Map<String, Attributes> entries = manifest.getEntries();
|
for (Map.Entry<String, Attributes> item : manifest.getEntries().entrySet()) {
|
||||||
for (Iterator<String> it = entries.keySet().iterator(); it.hasNext();) {
|
final String name = item.getKey();
|
||||||
final String name = it.next();
|
|
||||||
source = "manifest: " + name;
|
source = "manifest: " + name;
|
||||||
atts = entries.get(name);
|
atts = item.getValue();
|
||||||
for (Entry<Object, Object> entry : atts.entrySet()) {
|
for (Entry<Object, Object> entry : atts.entrySet()) {
|
||||||
final String key = entry.getKey().toString();
|
final String key = entry.getKey().toString();
|
||||||
final String value = atts.getValue(key);
|
final String value = atts.getValue(key);
|
||||||
|
|||||||
Reference in New Issue
Block a user