mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-22 00:59:34 +01:00
java7 updates and cleanup
This commit is contained in:
@@ -153,8 +153,8 @@ public class AggregateMojo extends BaseDependencyCheckMojo {
|
||||
if (project == null) {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
final Set<MavenProject> descendants = new HashSet<MavenProject>();
|
||||
int size = 0;
|
||||
final Set<MavenProject> descendants = new HashSet<>();
|
||||
int size;
|
||||
if (getLog().isDebugEnabled()) {
|
||||
getLog().debug(String.format("Collecting descendants of %s", project.getName()));
|
||||
}
|
||||
@@ -191,7 +191,7 @@ public class AggregateMojo extends BaseDependencyCheckMojo {
|
||||
}
|
||||
}
|
||||
}
|
||||
final Set<MavenProject> addedDescendants = new HashSet<MavenProject>();
|
||||
final Set<MavenProject> addedDescendants = new HashSet<>();
|
||||
for (MavenProject dec : descendants) {
|
||||
for (String mod : dec.getModules()) {
|
||||
try {
|
||||
|
||||
@@ -114,6 +114,9 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
|
||||
@Component
|
||||
private ArtifactResolver artifactResolver;
|
||||
|
||||
/**
|
||||
* The Maven Session.
|
||||
*/
|
||||
@Parameter( defaultValue = "${session}", readonly = true, required = true )
|
||||
protected MavenSession session;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user