mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 07:43:40 +01:00
checkstyle corrections
Former-commit-id: b821a8b9a680c875a3013099a362b0277d97119f
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user