Skip to content

Commit

Permalink
Collapse identical catch blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Jan 3, 2023
1 parent c65ab98 commit 78e7b3c
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
import java.io.IOException;
import java.io.FileOutputStream;
import java.io.FileNotFoundException;
import java.net.MalformedURLException;
import java.util.Collection;
import java.util.List;
import java.util.Locale;
Expand Down Expand Up @@ -177,11 +176,7 @@ public void generateSchema() throws MojoExecutionException {

helper.attachArtifact(project,"xsd","taglib-"+prefix,schema);
}
} catch (TransformerException e) {
throw new MojoExecutionException("Failed to generate schema",e);
} catch (DocumentException e) {
throw new MojoExecutionException("Failed to generate schema",e);
} catch (FileNotFoundException e) {
} catch (TransformerException | FileNotFoundException | DocumentException e) {
throw new MojoExecutionException("Failed to generate schema",e);
}
}
Expand Down Expand Up @@ -216,13 +211,7 @@ public void generate(Sink sink, Locale locale) throws MavenReportException {
execute();
new ReferenceRenderer(sink,new File(targetDir(),"taglib.xml").toURI().toURL()).render();
FileUtils.copyDirectory(targetDir(),new File(targetDir(),"site"),"taglib-*.xsd",null);
} catch (AbstractMojoExecutionException e) {
throw new MavenReportException("Failed to generate report",e);
} catch (MalformedURLException e) {
throw new MavenReportException("Failed to generate report",e);
} catch (DocumentException e) {
throw new MavenReportException("Failed to generate report",e);
} catch (IOException e) {
} catch (AbstractMojoExecutionException | DocumentException | IOException e) {
throw new MavenReportException("Failed to generate report",e);
}
}
Expand Down

0 comments on commit 78e7b3c

Please sign in to comment.