mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-25 18:41:44 +01:00
added an additional addIdentfier to support identifier confidence for issue #35
Former-commit-id: c36f85a13598ac9683db078c93ac495bf629f443
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