mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-15 16:23:37 +01:00
spelling fixes
Former-commit-id: 1909bc5b30b2dfd4ece5c880aace9ca4fd830b48
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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<String, String> 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<String, String> loadData() {
|
||||
ObjectInputStream oin = null;
|
||||
|
||||
@@ -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<String, String> cwe = new HashMap<String, String>();
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -474,7 +474,7 @@ public class Dependency implements Comparable<Dependency> {
|
||||
relatedDependencies.add(dependency);
|
||||
}
|
||||
/**
|
||||
* Implemenation of the Comparable<Dependency> interface. The comparison
|
||||
* Implementation of the Comparable<Dependency> interface. The comparison
|
||||
* is solely based on the file name.
|
||||
* @param o a dependency to compare
|
||||
* @return an integer representing the natural ordering
|
||||
|
||||
@@ -96,7 +96,7 @@ public class EvidenceCollection implements Iterable<Evidence> {
|
||||
*/
|
||||
private Set<Evidence> 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<String> weightedStrings;
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.apache.commons.lang.StringUtils;
|
||||
* versionParts[2] = 3;
|
||||
* </code></p>
|
||||
* <p>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.</p>
|
||||
* @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() {
|
||||
|
||||
Reference in New Issue
Block a user