checkstle fixes

Former-commit-id: d7f55af71bca0347b03db5fb9660c3b391619100
This commit is contained in:
Jeremy Long
2013-06-04 23:47:22 -04:00
parent 8debea384f
commit 535d1e4aff
3 changed files with 5 additions and 5 deletions

View File

@@ -810,7 +810,7 @@ public class JarAnalyzer extends AbstractAnalyzer implements Analyzer {
HashMap<String, Integer> level1, HashMap<String, Integer> level2, HashMap<String, Integer> level3) {
int count = 0;
while (en.hasMoreElements()) {
final java.util.jar.JarEntry entry = (java.util.jar.JarEntry) en.nextElement();
final JarEntry entry = (JarEntry) en.nextElement();
if (entry.getName().endsWith(".class")) {
String[] path;
if (entry.getName().contains("/")) {

View File

@@ -169,9 +169,9 @@ public class NvdCveAnalyzer implements Analyzer {
* Specifically, this is concerned with ensuring the version numbers are correct.</p>
* <p>Currently, this is focused on the issues with the versions for Struts 1 and Struts 2.
* In the future this will due better matching on more version numbers.</p>
* @param dependency
* @param v
* @return
* @param dependency the dependency
* @param v the vulnerability
* @return returns true if the vulnerability is for the given dependency
*/
private boolean isValidMatch(final Dependency dependency, final Vulnerability v) {
//right now I only know of the issue with Struts1/2

View File

@@ -198,7 +198,7 @@ public class ReportGenerator {
try {
final File outDir = new File(outFileName).getParentFile();
if (!outDir.exists()) {
boolean created = outDir.mkdirs();
final boolean created = outDir.mkdirs();
if (!created) {
throw new Exception("Unable to create directory '" + outDir.getAbsolutePath() + "'.");
}