You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/04/25 12:10:28 UTC

[camel] 04/07: CAMEL-17894: colapse similar catch statements

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit cc3e8b2bd6fffee5fc8bc61d6e22a6738cd0824f
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Apr 25 11:55:35 2022 +0200

    CAMEL-17894: colapse similar catch statements
---
 .../java/org/apache/camel/maven/bom/generator/BomGeneratorMojo.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tooling/maven/bom-generator-maven-plugin/src/main/java/org/apache/camel/maven/bom/generator/BomGeneratorMojo.java b/tooling/maven/bom-generator-maven-plugin/src/main/java/org/apache/camel/maven/bom/generator/BomGeneratorMojo.java
index 82c016daa55..a0c11df3dcf 100644
--- a/tooling/maven/bom-generator-maven-plugin/src/main/java/org/apache/camel/maven/bom/generator/BomGeneratorMojo.java
+++ b/tooling/maven/bom-generator-maven-plugin/src/main/java/org/apache/camel/maven/bom/generator/BomGeneratorMojo.java
@@ -142,9 +142,7 @@ public class BomGeneratorMojo extends AbstractMojo {
 
             writePom(pom);
 
-        } catch (MojoFailureException ex) {
-            throw ex;
-        } catch (MojoExecutionException ex) {
+        } catch (MojoFailureException | MojoExecutionException ex) {
             throw ex;
         } catch (Exception ex) {
             throw new MojoExecutionException("Cannot generate the output BOM file", ex);