mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 01:29:43 +01:00
checkstyle fix
Former-commit-id: 5c79f2c38a40c6f339f8383cccdc86c2aa5e3cf4
This commit is contained in:
@@ -279,6 +279,7 @@ public class DependencyCheckMojo extends AbstractMojo implements MavenMultiPageR
|
|||||||
* Executes the Dependency-Check on the dependent libraries.
|
* Executes the Dependency-Check on the dependent libraries.
|
||||||
*
|
*
|
||||||
* @return the Engine used to scan the dependencies.
|
* @return the Engine used to scan the dependencies.
|
||||||
|
* @throws DatabaseException thrown if there is an exception connecting to the database
|
||||||
*/
|
*/
|
||||||
private Engine executeDependencyCheck() throws DatabaseException {
|
private Engine executeDependencyCheck() throws DatabaseException {
|
||||||
|
|
||||||
@@ -812,7 +813,8 @@ public class DependencyCheckMojo extends AbstractMojo implements MavenMultiPageR
|
|||||||
checkForFailure(engine.getDependencies());
|
checkForFailure(engine.getDependencies());
|
||||||
}
|
}
|
||||||
} catch (DatabaseException ex) {
|
} catch (DatabaseException ex) {
|
||||||
Logger.getLogger(DependencyCheckMojo.class.getName()).log(Level.SEVERE, "Unable to connect to the dependency-check database; analysis has stopped");
|
Logger.getLogger(DependencyCheckMojo.class.getName()).log(Level.SEVERE,
|
||||||
|
"Unable to connect to the dependency-check database; analysis has stopped");
|
||||||
Logger.getLogger(DependencyCheckMojo.class.getName()).log(Level.FINE, "", ex);
|
Logger.getLogger(DependencyCheckMojo.class.getName()).log(Level.FINE, "", ex);
|
||||||
} finally {
|
} finally {
|
||||||
if (engine != null) {
|
if (engine != null) {
|
||||||
@@ -847,7 +849,8 @@ public class DependencyCheckMojo extends AbstractMojo implements MavenMultiPageR
|
|||||||
engine = executeDependencyCheck();
|
engine = executeDependencyCheck();
|
||||||
generateMavenSiteReport(engine, sink);
|
generateMavenSiteReport(engine, sink);
|
||||||
} catch (DatabaseException ex) {
|
} catch (DatabaseException ex) {
|
||||||
Logger.getLogger(DependencyCheckMojo.class.getName()).log(Level.SEVERE, "Unable to connect to the dependency-check database; analysis has stopped");
|
Logger.getLogger(DependencyCheckMojo.class.getName()).log(Level.SEVERE,
|
||||||
|
"Unable to connect to the dependency-check database; analysis has stopped");
|
||||||
Logger.getLogger(DependencyCheckMojo.class.getName()).log(Level.FINE, "", ex);
|
Logger.getLogger(DependencyCheckMojo.class.getName()).log(Level.FINE, "", ex);
|
||||||
} finally {
|
} finally {
|
||||||
if (engine != null) {
|
if (engine != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user