made isAffected protected instead of private so that tests could be added

Former-commit-id: e7fd58900b4c8ebbaf06d476870defa4fc921628
This commit is contained in:
Jeremy Long
2014-11-11 14:42:34 -05:00
parent 0a9d8a9b22
commit cdbbb1b94c

View File

@@ -731,7 +731,7 @@ public class CveDB {
* @param previous a flag indicating if previous versions of the product are vulnerable
* @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;
final boolean isStruts = "apache".equals(vendor) && "struts".equals(product);
final DependencyVersion v = parseDependencyVersion(cpeId);