diff --git a/src/main/java/org/codehaus/mojo/license/AbstractDownloadLicensesMojo.java b/src/main/java/org/codehaus/mojo/license/AbstractDownloadLicensesMojo.java index bb95d771d..0393f4bc5 100644 --- a/src/main/java/org/codehaus/mojo/license/AbstractDownloadLicensesMojo.java +++ b/src/main/java/org/codehaus/mojo/license/AbstractDownloadLicensesMojo.java @@ -822,25 +822,20 @@ public void execute() throw new MojoExecutionException( "Unable to write license summary file: " + licensesOutputFile, e ); } - switch ( errorRemedy ) - { - case ignore: - case failFast: - /* do nothing */ - break; - case warn: - LOG.warn( "There were {} download errors - check the warnings above", downloadErrorCount ); - break; - case xmlOutput: - if ( downloadErrorCount > 0 ) - { - throw new MojoFailureException( "There were " + downloadErrorCount + " download errors - check " - + licensesErrorsFile.getAbsolutePath() ); - } - break; - default: - throw new IllegalStateException( "Unexpected value of " + ErrorRemedy.class.getName() + ": " - + errorRemedy ); + if ( downloadErrorCount > 0 ) { + switch (errorRemedy) { + case ignore: + case failFast: + /* do nothing */ + break; + case warn: + LOG.warn("There were {} download errors - check the warnings above", downloadErrorCount); + break; + case xmlOutput: + throw new MojoFailureException("There were " + downloadErrorCount + " download errors - check " + licensesErrorsFile.getAbsolutePath()); + default: + throw new IllegalStateException("Unexpected value of " + ErrorRemedy.class.getName() + ": " + errorRemedy); + } } } @@ -1352,7 +1347,7 @@ private void handleError( ProjectLicenseInfo depProject, String msg ) throws Moj { if ( depProject.isApproved() ) { - LOG.debug( "Supressing manually approved license issue: {}", msg ); + LOG.debug( "Suppressing manually approved license issue: {}", msg ); } else {