checkstyle corrections

Former-commit-id: b821a8b9a680c875a3013099a362b0277d97119f
This commit is contained in:
Jeremy Long
2015-02-26 09:15:28 -05:00
parent 56aea8ad24
commit 01ef2e1061
2 changed files with 3 additions and 5 deletions

View File

@@ -21,11 +21,9 @@ import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -133,7 +131,7 @@ public class AggregateMojo extends BaseDependencyCheckMojo {
if (project == null) {
return Collections.emptySet();
}
Set<MavenProject> descendants = new HashSet<MavenProject>();
final Set<MavenProject> descendants = new HashSet<MavenProject>();
int size = 0;
LOGGER.fine(String.format("Collecting descendants of %s", project.getName()));
for (String m : project.getModules()) {
@@ -230,7 +228,7 @@ public class AggregateMojo extends BaseDependencyCheckMojo {
engine.resetFileTypeAnalyzers();
scanArtifacts(project, engine);
engine.analyzeDependencies();
File target = new File(project.getBuild().getDirectory());
final File target = new File(project.getBuild().getDirectory());
writeDataFile(project, target, engine.getDependencies());
showSummary(project, engine.getDependencies());
checkForFailure(engine.getDependencies());

View File

@@ -99,7 +99,7 @@ public final class Downloader {
if (status == HttpURLConnection.HTTP_MOVED_TEMP
|| status == HttpURLConnection.HTTP_MOVED_PERM
|| status == HttpURLConnection.HTTP_SEE_OTHER) {
String location = conn.getHeaderField("Location");
final String location = conn.getHeaderField("Location");
try {
conn.disconnect();
} finally {