removed cleanup in favor of close from autoclosable

This commit is contained in:
Jeremy Long
2017-09-03 14:34:39 -04:00
parent 9b491fb286
commit f36f4068f3
13 changed files with 23 additions and 28 deletions

View File

@@ -16,4 +16,4 @@
# Copyright (c) 2014 Jeremy Long. All Rights Reserved.
#
invoker.goals = install ${project.groupId}:${project.artifactId}:${project.version}:check -X -T 1
invoker.goals = install ${project.groupId}:${project.artifactId}:${project.version}:check -X -T 12

View File

@@ -150,7 +150,7 @@ public class AggregateMojo extends BaseDependencyCheckMojo {
if (exCol != null && this.isFailOnError()) {
throw new MojoExecutionException("One or more exceptions occurred during dependency-check analysis", exCol);
}
engine.cleanup();
engine.close();
getSettings().cleanup();
}

View File

@@ -129,7 +129,7 @@ public class CheckMojo extends BaseDependencyCheckMojo {
throw new MojoExecutionException("One or more exceptions occurred during dependency-check analysis", exCol);
}
}
engine.cleanup();
engine.close();
}
getSettings().cleanup();
}

View File

@@ -103,7 +103,7 @@ public class BaseDependencyCheckMojoTest extends BaseTest {
Assume.assumeNoException(ex);
}
assertFalse(engine.getDependencies().length == 0);
engine.cleanup();
engine.close();
}
}