Skip to content

Commit 7099469

Browse files
author
Lê Nam Khánh
authored
docs: fix typos in some files (#8106)
1 parent 8ef5a4f commit 7099469

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

ant/src/main/java/org/owasp/dependencycheck/taskdefs/Check.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public class Check extends Update {
410410
private Boolean versionCheckEnabled;
411411

412412
/**
413-
* whether an unsused suppression rule should get force the build to fail
413+
* whether an unused suppression rule should get force the build to fail
414414
*/
415415
private boolean failBuildOnUnusedSuppressionRule = false;
416416

ant/src/main/java/org/slf4j/impl/StaticLoggerBinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class StaticLoggerBinder implements LoggerFactoryBinder {
6363

6464
/**
6565
* The ILoggerFactory instance returned by the {@link #getLoggerFactory}
66-
* method should always be the smae object
66+
* method should always be the same object
6767
*/
6868
private ILoggerFactory loggerFactory;
6969

core/src/main/java/org/owasp/dependencycheck/data/update/cpe/CpeEcosystemCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public final class CpeEcosystemCache {
4545
private static Map<Pair<String, String>, String> changed = new HashMap<>();
4646

4747
private CpeEcosystemCache() {
48-
//empty constructor for utiilty class
48+
//empty constructor for utility class
4949
}
5050
/**
5151
* The logger.

core/src/main/java/org/owasp/dependencycheck/dependency/VulnerableSoftware.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public boolean matches(ICpe target) {
207207
//TODO implement versionStart etc.
208208
result &= compareVersionRange(target.getVersion());
209209

210-
//todo - if the vulnerablity has an update we are might not be collecting it correctly...
210+
//todo - if the vulnerability has an update we are might not be collecting it correctly...
211211
// as such, this check might cause FN if the CVE has an update in the data set
212212
result &= compareUpdateAttributes(this.getUpdate(), target.getUpdate());
213213
result &= compareAttributes(this.getEdition(), target.getEdition());
@@ -348,7 +348,7 @@ public static boolean testMatch(ICpe left, ICpe right) {
348348
result &= compareAttributes(left.getWellFormedVersion(), right.getWellFormedVersion());
349349
}
350350

351-
//todo - if the vulnerablity has an update we are might not be collecting it correctly...
351+
//todo - if the vulnerability has an update we are might not be collecting it correctly...
352352
// as such, this check might cause FN if the CVE has an update in the data set
353353
result &= compareUpdateAttributes(left.getWellFormedUpdate(), right.getWellFormedUpdate());
354354
result &= compareAttributes(left.getWellFormedEdition(), right.getWellFormedEdition());

core/src/main/java/org/owasp/dependencycheck/utils/SeverityUtil.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public static String unscoredToSeveritytext(final String severity) {
117117
* the lower bound of the CVSSv3 baseScore for that severity. For recognized
118118
* critical severities it returns a score in-between the upper bound of the
119119
* HIGH CVSSv2 score and the lowest sort-adjusted CVSSv3 critical score, so
120-
* that unscored critical vulnerabilties are ordered in between CRITICAL
120+
* that unscored critical vulnerabilities are ordered in between CRITICAL
121121
* scored CVSSv3 rated vulnerabilities and HIGH-scored CVSSv2 rated
122122
* vulnerabilities. For unrecognized severities it returns a score
123123
* in-between the top HIGH CVSSv2 score and the estimatedSortAdjustedCVSSv3
@@ -173,7 +173,7 @@ public static Double sortAdjustedCVSSv3BaseScore(final Double cvssV3BaseScore) {
173173

174174
/**
175175
* An enum to translate unscored severity texts to a severity level of a
176-
* defined set of severities. Allows for re-use of the text-to-severity
176+
* defined set of severities. Allows for reuse of the text-to-severity
177177
* mapping in multiple helper methods.
178178
*/
179179
private enum Severity {
@@ -184,7 +184,7 @@ private enum Severity {
184184
CRITICAL,
185185
/**
186186
* A severity level for textual values that are not recognized and
187-
* therefor assumed to be accompanying a critical severity vulnerability
187+
* therefore assumed to be accompanying a critical severity vulnerability
188188
*/
189189
ASSUMED_CRITICAL,
190190
/**

0 commit comments

Comments
 (0)