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 2023/04/17 09:59:47 UTC
[camel] 10/13: (chores) camel-xmlsecurity: combined duplicated catch blocks
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 320c103d4dc19ae7555d8262d67d0787f7f889e8
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Apr 17 10:21:02 2023 +0200
(chores) camel-xmlsecurity: combined duplicated catch blocks
---
.../apache/camel/component/xmlsecurity/api/DefaultKeySelector.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/api/DefaultKeySelector.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/api/DefaultKeySelector.java
index 172a8b1c0f9..63105a18b2f 100644
--- a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/api/DefaultKeySelector.java
+++ b/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/api/DefaultKeySelector.java
@@ -120,11 +120,7 @@ public class DefaultKeySelector extends KeySelector implements CamelContextAware
} else {
key = keyStoreAndAlias.getKeyStore().getKey(keyStoreAndAlias.getAlias(), keyStoreAndAlias.getPassword());
}
- } catch (UnrecoverableKeyException e) {
- throw new KeySelectorException(e);
- } catch (KeyStoreException e) {
- throw new KeySelectorException(e);
- } catch (NoSuchAlgorithmException e) {
+ } catch (UnrecoverableKeyException | KeyStoreException | NoSuchAlgorithmException e) {
throw new KeySelectorException(e);
}
return getKeySelectorResult(key);