mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-22 17:19:30 +01:00
patch to resolve issue #255
Former-commit-id: 0e3f3081929a4bd93ea14a7379567f2f0c776b02
This commit is contained in:
@@ -123,8 +123,7 @@ public class JarAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
"ipojo-extension",
|
"ipojo-extension",
|
||||||
"eclipse-sourcereferences");
|
"eclipse-sourcereferences");
|
||||||
/**
|
/**
|
||||||
* Deprecated Jar manifest attribute, that is, nonetheless, useful for
|
* Deprecated Jar manifest attribute, that is, nonetheless, useful for analysis.
|
||||||
* analysis.
|
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
private static final String IMPLEMENTATION_VENDOR_ID = Attributes.Name.IMPLEMENTATION_VENDOR_ID
|
private static final String IMPLEMENTATION_VENDOR_ID = Attributes.Name.IMPLEMENTATION_VENDOR_ID
|
||||||
@@ -567,7 +566,7 @@ public class JarAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
|
|
||||||
//Description
|
//Description
|
||||||
final String description = pom.getDescription();
|
final String description = pom.getDescription();
|
||||||
if (description != null && !description.isEmpty()) {
|
if (description != null && !description.isEmpty() && !description.startsWith("POM was created by")) {
|
||||||
foundSomething = true;
|
foundSomething = true;
|
||||||
final String trimmedDescription = addDescription(dependency, description, "pom", "description");
|
final String trimmedDescription = addDescription(dependency, description, "pom", "description");
|
||||||
addMatchingValues(classes, trimmedDescription, dependency.getVendorEvidence());
|
addMatchingValues(classes, trimmedDescription, dependency.getVendorEvidence());
|
||||||
|
|||||||
Reference in New Issue
Block a user