mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 01:29:43 +01:00
fixed bug were an exception would cause the lock not to be released
This commit is contained in:
@@ -37,6 +37,7 @@ import org.junit.Assume;
|
||||
import org.junit.Test;
|
||||
import org.owasp.dependencycheck.Engine;
|
||||
import org.owasp.dependencycheck.data.nvdcve.DatabaseException;
|
||||
import org.owasp.dependencycheck.exception.ExceptionCollection;
|
||||
import org.owasp.dependencycheck.utils.InvalidSettingException;
|
||||
import org.owasp.dependencycheck.utils.Settings;
|
||||
|
||||
@@ -113,8 +114,8 @@ public class BaseDependencyCheckMojoTest extends BaseTest {
|
||||
public class BaseDependencyCheckMojoImpl extends BaseDependencyCheckMojo {
|
||||
|
||||
@Override
|
||||
public void runCheck() throws MojoExecutionException, MojoFailureException {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
protected void runCheck() throws MojoExecutionException, MojoFailureException {
|
||||
throw new UnsupportedOperationException("Operation not supported");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -129,7 +130,12 @@ public class BaseDependencyCheckMojoTest extends BaseTest {
|
||||
|
||||
@Override
|
||||
public boolean canGenerateReport() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
throw new UnsupportedOperationException("Operation not supported");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ExceptionCollection scanDependencies(Engine engine) throws MojoExecutionException {
|
||||
throw new UnsupportedOperationException("Operation not supported");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user