java7 updates and cleanup

This commit is contained in:
Jeremy Long
2017-03-10 15:30:48 -05:00
parent 32590ab7ff
commit 046f4605f9
71 changed files with 214 additions and 207 deletions

View File

@@ -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 {

View File

@@ -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;