mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-27 11:31:24 +01:00
added an additional addIdentfier to support identifier confidence for issue #35
Former-commit-id: d03d5606703ae58dcc9f954c93dce6135e5bf5f5
This commit is contained in:
@@ -247,6 +247,20 @@ public class Dependency implements Comparable<Dependency> {
|
|||||||
this.identifiers.add(i);
|
this.identifiers.add(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds an entry to the list of detected Identifiers for the dependency file.
|
||||||
|
*
|
||||||
|
* @param type the type of identifier (such as CPE)
|
||||||
|
* @param value the value of the identifier
|
||||||
|
* @param url the URL of the identifier
|
||||||
|
* @param confidence the confidence in the Identifier being accurate
|
||||||
|
*/
|
||||||
|
public void addIdentifier(String type, String value, String url, Confidence confidence) {
|
||||||
|
final Identifier i = new Identifier(type, value, url);
|
||||||
|
i.setConfidence(confidence);
|
||||||
|
this.identifiers.add(i);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds an entry to the list of detected Identifiers for the dependency file.
|
* Adds an entry to the list of detected Identifiers for the dependency file.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user