Updates to abstract analyzer and subclasses - removed duplicate code

Former-commit-id: 618c113750bf2af612d9e476fd6992db5147fcdc
This commit is contained in:
Jeremy Long
2013-04-19 18:46:01 -04:00
parent 811f85c127
commit 616da84891
9 changed files with 60 additions and 71 deletions

View File

@@ -39,7 +39,7 @@ import org.owasp.dependencycheck.utils.FileUtils;
*
* @author Jeremy Long (jeremy.long@gmail.com)
*/
public class Dependency {
public class Dependency implements Comparable<Dependency> {
/**
* The actual file path of the dependency on disk.
@@ -473,4 +473,8 @@ public class Dependency {
public void addRelatedDependency(Dependency dependency) {
relatedDependencies.add(dependency);
}
public int compareTo(Dependency o) {
return this.getFileName().compareToIgnoreCase(o.getFileName());
}
}