mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 18:11:47 +01:00
made isAffected protected instead of private so that tests could be added
Former-commit-id: e7fd58900b4c8ebbaf06d476870defa4fc921628
This commit is contained in:
@@ -731,7 +731,7 @@ public class CveDB {
|
|||||||
* @param previous a flag indicating if previous versions of the product are vulnerable
|
* @param previous a flag indicating if previous versions of the product are vulnerable
|
||||||
* @return true if the identified version is affected, otherwise false
|
* @return true if the identified version is affected, otherwise false
|
||||||
*/
|
*/
|
||||||
private boolean isAffected(String vendor, String product, DependencyVersion identifiedVersion, String cpeId, String previous) {
|
protected boolean isAffected(String vendor, String product, DependencyVersion identifiedVersion, String cpeId, String previous) {
|
||||||
boolean affected = false;
|
boolean affected = false;
|
||||||
final boolean isStruts = "apache".equals(vendor) && "struts".equals(product);
|
final boolean isStruts = "apache".equals(vendor) && "struts".equals(product);
|
||||||
final DependencyVersion v = parseDependencyVersion(cpeId);
|
final DependencyVersion v = parseDependencyVersion(cpeId);
|
||||||
|
|||||||
Reference in New Issue
Block a user