From cb82f02eb4ebf27d9def70fcaebb6e4d5d2e132b Mon Sep 17 00:00:00 2001
From: Jeremy Long
Date: Thu, 9 May 2013 19:49:25 -0400
Subject: [PATCH] spelling fixes
Former-commit-id: d118f6474726c5cb39c246789830c4626a2bba7a
---
README.md | 2 +-
pom.xml | 2 +-
.../analyzer/DependencyBundlingAnalyzer.java | 2 +-
.../org/owasp/dependencycheck/analyzer/JarAnalyzer.java | 2 +-
src/main/java/org/owasp/dependencycheck/data/cwe/CweDB.java | 6 +++---
.../java/org/owasp/dependencycheck/data/cwe/CweHandler.java | 2 +-
.../dependencycheck/data/nvdcve/xml/DatabaseUpdater.java | 3 +--
.../org/owasp/dependencycheck/dependency/Dependency.java | 2 +-
.../dependencycheck/dependency/EvidenceCollection.java | 2 +-
.../org/owasp/dependencycheck/utils/DependencyVersion.java | 4 ++--
10 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/README.md b/README.md
index 00840046e..7e20a3d5e 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
DependencyCheck
=========
-DependencyCheck is a utility that attempts to detect publically disclosed vulnerabilities contained within project dependencies. It does this by determining if there is a Common Platform Enumeration (CPE) identifier for a given dependency. If found, it will generate a report linking to the associated CVE entries.
+DependencyCheck is a utility that attempts to detect publicly disclosed vulnerabilities contained within project dependencies. It does this by determining if there is a Common Platform Enumeration (CPE) identifier for a given dependency. If found, it will generate a report linking to the associated CVE entries..
More information can be found on the [wiki].
diff --git a/pom.xml b/pom.xml
index 1c7052981..5a08d11c6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,7 +27,7 @@ along with DependencyCheck. If not, see .
DependencyCheck
https://github.com/jeremylong/DependencyCheck.git
- Dependency-Check is a utility that attempts to detect publically disclosed vulnerabilities contained within project dependencies. It does this by determining if there is a Common Platform Enumeration (CPE) identifier for a given dependency. If found, it will generate a report linking to the associated CVE entries.
+ Dependency-Check is a utility that attempts to detect publicly disclosed vulnerabilities contained within project dependencies. It does this by determining if there is a Common Platform Enumeration (CPE) identifier for a given dependency. If found, it will generate a report linking to the associated CVE entries.
2012
owasp
diff --git a/src/main/java/org/owasp/dependencycheck/analyzer/DependencyBundlingAnalyzer.java b/src/main/java/org/owasp/dependencycheck/analyzer/DependencyBundlingAnalyzer.java
index d480714d4..f4c961bce 100644
--- a/src/main/java/org/owasp/dependencycheck/analyzer/DependencyBundlingAnalyzer.java
+++ b/src/main/java/org/owasp/dependencycheck/analyzer/DependencyBundlingAnalyzer.java
@@ -195,7 +195,7 @@ public class DependencyBundlingAnalyzer extends AbstractAnalyzer implements Anal
* This is likely a very broken attempt at determining if the 'left'
* dependency is the 'core' library in comparison to the 'right' library.
*
- * TODO - consider spliting on /\._-\s/ and checking if all of one side is fully contained in the other
+ * TODO - consider splitting on /\._-\s/ and checking if all of one side is fully contained in the other
* With the exception of the word "core". This might work even on groups when we don't have a CVE.
*
* @param left the dependency to test
diff --git a/src/main/java/org/owasp/dependencycheck/analyzer/JarAnalyzer.java b/src/main/java/org/owasp/dependencycheck/analyzer/JarAnalyzer.java
index 1f5f017d2..0a80f11a6 100644
--- a/src/main/java/org/owasp/dependencycheck/analyzer/JarAnalyzer.java
+++ b/src/main/java/org/owasp/dependencycheck/analyzer/JarAnalyzer.java
@@ -367,7 +367,7 @@ public class JarAnalyzer extends AbstractAnalyzer implements Analyzer {
* @param dependency A reference to the dependency.
* @param addPackagesAsEvidence a flag indicating whether or not package
* names should be added as evidence.
- * @return returns true or false depending on whether classses were identified in the JAR
+ * @return returns true or false depending on whether classes were identified in the JAR
* @throws IOException is thrown if there is an error reading the JAR file.
*/
protected boolean analyzePackageNames(Dependency dependency, boolean addPackagesAsEvidence)
diff --git a/src/main/java/org/owasp/dependencycheck/data/cwe/CweDB.java b/src/main/java/org/owasp/dependencycheck/data/cwe/CweDB.java
index ed1a5fa47..92c599cb9 100644
--- a/src/main/java/org/owasp/dependencycheck/data/cwe/CweDB.java
+++ b/src/main/java/org/owasp/dependencycheck/data/cwe/CweDB.java
@@ -38,14 +38,14 @@ public final class CweDB {
//empty
}
/**
- * A hashmap of the CWE data.
+ * A HashMap of the CWE data.
*/
private static final HashMap CWE = loadData();
/**
- * Loads a hashmap containing the CWE data from a resource found in the jar.
+ * Loads a HashMap containing the CWE data from a resource found in the jar.
*
- * @return a hashmap of CWE data
+ * @return a HashMap of CWE data
*/
private static HashMap loadData() {
ObjectInputStream oin = null;
diff --git a/src/main/java/org/owasp/dependencycheck/data/cwe/CweHandler.java b/src/main/java/org/owasp/dependencycheck/data/cwe/CweHandler.java
index 36853eb0f..d792c8908 100644
--- a/src/main/java/org/owasp/dependencycheck/data/cwe/CweHandler.java
+++ b/src/main/java/org/owasp/dependencycheck/data/cwe/CweHandler.java
@@ -31,7 +31,7 @@ import org.xml.sax.helpers.DefaultHandler;
public class CweHandler extends DefaultHandler {
/**
- * a hashmap containing the CWE data.
+ * a HashMap containing the CWE data.
*/
private HashMap cwe = new HashMap();
diff --git a/src/main/java/org/owasp/dependencycheck/data/nvdcve/xml/DatabaseUpdater.java b/src/main/java/org/owasp/dependencycheck/data/nvdcve/xml/DatabaseUpdater.java
index 62cacff0b..ea3c1df4a 100644
--- a/src/main/java/org/owasp/dependencycheck/data/nvdcve/xml/DatabaseUpdater.java
+++ b/src/main/java/org/owasp/dependencycheck/data/nvdcve/xml/DatabaseUpdater.java
@@ -165,8 +165,7 @@ public class DatabaseUpdater implements CachedWebDataSource {
*
* @param file the file containing the NVD CVE XML
* @param oldVersion contains the file containing the NVD CVE XML 1.2
- * @throws ParserConfigurationException is thrown if there is a
- * parserconfigurationexception
+ * @throws ParserConfigurationException is thrown if there is a parser configuration exception
* @throws SAXException is thrown if there is a saxexception
* @throws IOException is thrown if there is a ioexception
* @throws SQLException is thrown if there is a sql exception
diff --git a/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java b/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java
index ceb82fe0d..822b00ee9 100644
--- a/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java
+++ b/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java
@@ -474,7 +474,7 @@ public class Dependency implements Comparable {
relatedDependencies.add(dependency);
}
/**
- * Implemenation of the Comparable interface. The comparison
+ * Implementation of the Comparable interface. The comparison
* is solely based on the file name.
* @param o a dependency to compare
* @return an integer representing the natural ordering
diff --git a/src/main/java/org/owasp/dependencycheck/dependency/EvidenceCollection.java b/src/main/java/org/owasp/dependencycheck/dependency/EvidenceCollection.java
index 03ad3b3fd..5d3c4604a 100644
--- a/src/main/java/org/owasp/dependencycheck/dependency/EvidenceCollection.java
+++ b/src/main/java/org/owasp/dependencycheck/dependency/EvidenceCollection.java
@@ -96,7 +96,7 @@ public class EvidenceCollection implements Iterable {
*/
private Set list;
/**
- * A collection of strings used to adjust lucene's term weighting.
+ * A collection of strings used to adjust Lucene's term weighting.
*/
private Set weightedStrings;
diff --git a/src/main/java/org/owasp/dependencycheck/utils/DependencyVersion.java b/src/main/java/org/owasp/dependencycheck/utils/DependencyVersion.java
index 328890a35..bc1003b5a 100644
--- a/src/main/java/org/owasp/dependencycheck/utils/DependencyVersion.java
+++ b/src/main/java/org/owasp/dependencycheck/utils/DependencyVersion.java
@@ -33,7 +33,7 @@ import org.apache.commons.lang.StringUtils;
* versionParts[2] = 3;
*
* Note, the parser contained in this class expects the version numbers to be
- * seperated by periods. If a different seperator is used the parser will likely
+ * separated by periods. If a different seperator is used the parser will likely
* fail.
* @author Jeremy Long (jeremy.long@gmail.com)
*/
@@ -105,7 +105,7 @@ public class DependencyVersion implements Iterable {
/**
* Reconstructs the version string from the split version parts.
- * @return a string reprenting the version.
+ * @return a string representing the version.
*/
@Override
public String toString() {