mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 00:29:21 +01:00
spelling fixes
Former-commit-id: 2e0c40c67da68f70be57e507b62e4df2dad8fc35
This commit is contained in:
@@ -154,7 +154,7 @@ public class JarAnalyzer extends AbstractAnalyzer implements Analyzer {
|
|||||||
* Returns whether or not this analyzer can process the given extension.
|
* Returns whether or not this analyzer can process the given extension.
|
||||||
*
|
*
|
||||||
* @param extension the file extension to test for support.
|
* @param extension the file extension to test for support.
|
||||||
* @return whether or not the specified file extension is supported by tihs
|
* @return whether or not the specified file extension is supported by this
|
||||||
* analyzer.
|
* analyzer.
|
||||||
*/
|
*/
|
||||||
public boolean supportsExtension(String extension) {
|
public boolean supportsExtension(String extension) {
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ public class CveDB {
|
|||||||
* @return a list of Vulnerabilities
|
* @return a list of Vulnerabilities
|
||||||
* @throws DatabaseException thrown if there is an exception retrieving data
|
* @throws DatabaseException thrown if there is an exception retrieving data
|
||||||
*/
|
*/
|
||||||
public List<Vulnerability> getVulnerablilities(String cpeStr) throws DatabaseException {
|
public List<Vulnerability> getVulnerabilities(String cpeStr) throws DatabaseException {
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
final Entry cpe = new Entry();
|
final Entry cpe = new Entry();
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ public class NvdCveAnalyzer implements org.codesecure.dependencycheck.analyzer.A
|
|||||||
if ("cpe".equals(id.getType())) {
|
if ("cpe".equals(id.getType())) {
|
||||||
try {
|
try {
|
||||||
String value = id.getValue();
|
String value = id.getValue();
|
||||||
List<Vulnerability> vulns = cveDB.getVulnerablilities(value);
|
List<Vulnerability> vulns = cveDB.getVulnerabilities(value);
|
||||||
for (Vulnerability v : vulns) {
|
for (Vulnerability v : vulns) {
|
||||||
dependency.addVulnerability(v);
|
dependency.addVulnerability(v);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user