mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 16:49:43 +01:00
patch for issue #34 - hibernate3.jar no longer reports cpe:/a:jboss:jboss
Former-commit-id: 31cb24ff0052908bda1878057b5d9669e886e70b
This commit is contained in:
@@ -285,6 +285,9 @@ public class FalsePositiveAnalyzer extends AbstractAnalyzer {
|
|||||||
} else if (i.getValue().startsWith("cpe:/a:m-core:m-core")
|
} else if (i.getValue().startsWith("cpe:/a:m-core:m-core")
|
||||||
&& !dependency.getEvidenceUsed().containsUsedString("m-core")) {
|
&& !dependency.getEvidenceUsed().containsUsedString("m-core")) {
|
||||||
itr.remove();
|
itr.remove();
|
||||||
|
} else if (i.getValue().startsWith("cpe:/a:jboss:jboss")
|
||||||
|
&& !dependency.getFileName().toLowerCase().matches("jboss-[\\d\\.]+(GA)?\\.jar")) {
|
||||||
|
itr.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user