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
The following commit(s) were added to refs/heads/main by this push:
new ce2e32e (chores) removed unused exceptions
ce2e32e is described below
commit ce2e32ea984dc0e776c220daa3dbca9419c55075
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Fri Oct 8 16:27:36 2021 +0200
(chores) removed unused exceptions
components: camel-gora, camel-http, camel-jetty-common,
camel-kubernetes, camel-leveldb, camel-netty-http, camel-netty,
camel-resteasy, camel-smpp, camel-undertow, camel-xmpp
---
.../src/main/java/org/apache/camel/component/gora/GoraConsumer.java | 2 +-
.../src/main/java/org/apache/camel/component/http/HttpEndpoint.java | 2 +-
.../main/java/org/apache/camel/component/jetty/JettyHttpEndpoint.java | 3 +--
.../kubernetes/customresources/KubernetesCustomResourcesProducer.java | 2 +-
.../src/main/java/org/apache/camel/component/leveldb/LevelDBFile.java | 2 +-
.../camel/component/netty/http/HttpServerInitializerFactory.java | 2 +-
.../camel/component/netty/http/HttpServerSharedInitializerFactory.java | 2 +-
.../java/org/apache/camel/component/netty/http/NettyHttpHelper.java | 2 +-
.../apache/camel/component/netty/DefaultClientInitializerFactory.java | 2 +-
.../apache/camel/component/netty/DefaultServerInitializerFactory.java | 2 +-
.../java/org/apache/camel/component/resteasy/ResteasyEndpoint.java | 3 +--
.../src/main/java/org/apache/camel/component/smpp/SmppComponent.java | 2 +-
.../java/org/apache/camel/component/undertow/UndertowComponent.java | 3 +--
.../camel/component/undertow/UndertowComponentVerifierExtension.java | 3 +--
.../src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java | 2 +-
15 files changed, 15 insertions(+), 19 deletions(-)
diff --git
a/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraConsumer.java
b/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraConsumer.java
index 876c109..c899003 100644
---
a/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraConsumer.java
+++
b/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraConsumer.java
@@ -65,7 +65,7 @@ public class GoraConsumer extends ScheduledPollConsumer {
public GoraConsumer(final Endpoint endpoint,
final Processor processor,
final GoraConfiguration configuration,
- final DataStore<Object, Persistent> dataStore) throws
ClassNotFoundException, NoSuchMethodException,
+ final DataStore<Object, Persistent> dataStore) throws
NoSuchMethodException,
InvocationTargetException, IllegalAccessException {
super(endpoint, processor);
diff --git
a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
index e87c71b..6744ea9 100644
---
a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
+++
b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
@@ -171,7 +171,7 @@ public class HttpEndpoint extends HttpCommonEndpoint {
public HttpEndpoint(String endPointURI, HttpComponent component, URI
httpURI, HttpClientBuilder clientBuilder,
HttpClientConnectionManager clientConnectionManager,
- HttpClientConfigurer clientConfigurer) throws
URISyntaxException {
+ HttpClientConfigurer clientConfigurer) {
super(endPointURI, component, httpURI);
this.clientBuilder = clientBuilder;
this.httpClientConfigurer = clientConfigurer;
diff --git
a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpEndpoint.java
b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpEndpoint.java
index 9d81468..1eda82d 100644
---
a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpEndpoint.java
+++
b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpEndpoint.java
@@ -17,7 +17,6 @@
package org.apache.camel.component.jetty;
import java.net.URI;
-import java.net.URISyntaxException;
import java.util.List;
import java.util.Map;
@@ -82,7 +81,7 @@ public abstract class JettyHttpEndpoint extends
HttpCommonEndpoint {
description = "To configure security using SSLContextParameters")
private SSLContextParameters sslContextParameters;
- public JettyHttpEndpoint(JettyHttpComponent component, String uri, URI
httpURL) throws URISyntaxException {
+ public JettyHttpEndpoint(JettyHttpComponent component, String uri, URI
httpURL) {
super(uri, component, httpURL);
}
diff --git
a/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/customresources/KubernetesCustomResourcesProducer.java
b/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/customresources/KubernetesCustomResourcesProducer.java
index 2cf60c0..7fdbc37 100644
---
a/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/customresources/KubernetesCustomResourcesProducer.java
+++
b/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/customresources/KubernetesCustomResourcesProducer.java
@@ -145,7 +145,7 @@ public class KubernetesCustomResourcesProducer extends
DefaultProducer {
prepareOutboundMessage(exchange, customResourceJSON);
}
- protected void doDelete(Exchange exchange, String namespaceName) throws
IOException {
+ protected void doDelete(Exchange exchange, String namespaceName) {
String customResourceName =
exchange.getIn().getHeader(KubernetesConstants.KUBERNETES_CRD_INSTANCE_NAME,
String.class);
if (ObjectHelper.isEmpty(customResourceName)) {
LOG.error("Deleting a specific deployment require specify a
deployment name");
diff --git
a/components/camel-leveldb/src/main/java/org/apache/camel/component/leveldb/LevelDBFile.java
b/components/camel-leveldb/src/main/java/org/apache/camel/component/leveldb/LevelDBFile.java
index da59baa..5545611 100644
---
a/components/camel-leveldb/src/main/java/org/apache/camel/component/leveldb/LevelDBFile.java
+++
b/components/camel-leveldb/src/main/java/org/apache/camel/component/leveldb/LevelDBFile.java
@@ -64,7 +64,7 @@ public class LevelDBFile implements Service {
return file;
}
- public void setFile(File file) throws IOException {
+ public void setFile(File file) {
this.file = file;
}
diff --git
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerInitializerFactory.java
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerInitializerFactory.java
index 0128dd6..f28c789 100644
---
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerInitializerFactory.java
+++
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerInitializerFactory.java
@@ -180,7 +180,7 @@ public class HttpServerInitializerFactory extends
ServerInitializerFactory {
return answer;
}
- private SslHandler configureServerSSLOnDemand() throws Exception {
+ private SslHandler configureServerSSLOnDemand() {
if (!consumer.getConfiguration().isSsl()) {
return null;
}
diff --git
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerSharedInitializerFactory.java
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerSharedInitializerFactory.java
index 34905b5..31e09d8 100644
---
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerSharedInitializerFactory.java
+++
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerSharedInitializerFactory.java
@@ -143,7 +143,7 @@ public class HttpServerSharedInitializerFactory extends
HttpServerInitializerFac
return answer;
}
- private SslHandler configureServerSSLOnDemand() throws Exception {
+ private SslHandler configureServerSSLOnDemand() {
if (!configuration.isSsl()) {
return null;
}
diff --git
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpHelper.java
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpHelper.java
index cefb123..25ade42 100644
---
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpHelper.java
+++
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpHelper.java
@@ -186,7 +186,7 @@ public final class NettyHttpHelper {
* @param endpoint the endpoint
* @return the URL to invoke
*/
- public static String createURL(Exchange exchange, NettyHttpEndpoint
endpoint) throws URISyntaxException {
+ public static String createURL(Exchange exchange, NettyHttpEndpoint
endpoint) {
// rest producer may provide an override url to be used which we
should discard if using (hence the remove)
String uri = (String)
exchange.getIn().removeHeader(Exchange.REST_HTTP_URI);
if (uri == null) {
diff --git
a/components/camel-netty/src/main/java/org/apache/camel/component/netty/DefaultClientInitializerFactory.java
b/components/camel-netty/src/main/java/org/apache/camel/component/netty/DefaultClientInitializerFactory.java
index 398603e..af08921 100644
---
a/components/camel-netty/src/main/java/org/apache/camel/component/netty/DefaultClientInitializerFactory.java
+++
b/components/camel-netty/src/main/java/org/apache/camel/component/netty/DefaultClientInitializerFactory.java
@@ -148,7 +148,7 @@ public class DefaultClientInitializerFactory extends
ClientInitializerFactory {
return answer;
}
- private SslHandler configureClientSSLOnDemand() throws Exception {
+ private SslHandler configureClientSSLOnDemand() {
if (!producer.getConfiguration().isSsl()) {
return null;
}
diff --git
a/components/camel-netty/src/main/java/org/apache/camel/component/netty/DefaultServerInitializerFactory.java
b/components/camel-netty/src/main/java/org/apache/camel/component/netty/DefaultServerInitializerFactory.java
index 8af4221..76b73f3 100644
---
a/components/camel-netty/src/main/java/org/apache/camel/component/netty/DefaultServerInitializerFactory.java
+++
b/components/camel-netty/src/main/java/org/apache/camel/component/netty/DefaultServerInitializerFactory.java
@@ -165,7 +165,7 @@ public class DefaultServerInitializerFactory extends
ServerInitializerFactory {
return answer;
}
- private SslHandler configureServerSSLOnDemand() throws Exception {
+ private SslHandler configureServerSSLOnDemand() {
if (!consumer.getConfiguration().isSsl()) {
return null;
}
diff --git
a/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/ResteasyEndpoint.java
b/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/ResteasyEndpoint.java
index 859c90b..68e58ad 100644
---
a/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/ResteasyEndpoint.java
+++
b/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/ResteasyEndpoint.java
@@ -17,7 +17,6 @@
package org.apache.camel.component.resteasy;
import java.net.URI;
-import java.net.URISyntaxException;
import org.apache.camel.Category;
import org.apache.camel.Consumer;
@@ -72,7 +71,7 @@ public class ResteasyEndpoint extends HttpEndpoint {
@UriParam(label = "advanced")
private HeaderFilterStrategy headerFilterStrategy;
- public ResteasyEndpoint(String endPointURI, ResteasyComponent component,
URI httpUri) throws URISyntaxException {
+ public ResteasyEndpoint(String endPointURI, ResteasyComponent component,
URI httpUri) {
super(endPointURI, component, httpUri, null, null, null);
}
diff --git
a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppComponent.java
b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppComponent.java
index bc4f88c..ad85441 100644
---
a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppComponent.java
+++
b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppComponent.java
@@ -63,7 +63,7 @@ public class SmppComponent extends DefaultComponent {
/**
* Create a new smpp endpoint with the provided smpp configuration
*/
- protected Endpoint createEndpoint(SmppConfiguration config) throws
Exception {
+ protected Endpoint createEndpoint(SmppConfiguration config) {
return createEndpoint(null, config);
}
diff --git
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java
index 7bbb59d..079c5a8 100644
---
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java
+++
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java
@@ -17,7 +17,6 @@
package org.apache.camel.component.undertow;
import java.net.URI;
-import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashSet;
@@ -150,7 +149,7 @@ public class UndertowComponent extends DefaultComponent
return endpoint;
}
- protected UndertowEndpoint createEndpointInstance(URI endpointUri,
UndertowComponent component) throws URISyntaxException {
+ protected UndertowEndpoint createEndpointInstance(URI endpointUri,
UndertowComponent component) {
return new UndertowEndpoint(endpointUri.toString(), component);
}
diff --git
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponentVerifierExtension.java
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponentVerifierExtension.java
index 69f600e..b056c70 100644
---
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponentVerifierExtension.java
+++
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponentVerifierExtension.java
@@ -19,7 +19,6 @@ package org.apache.camel.component.undertow;
import java.io.IOException;
import java.lang.ref.WeakReference;
import java.net.URI;
-import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
@@ -226,7 +225,7 @@ public final class UndertowComponentVerifierExtension
extends DefaultComponentVe
private final ByteBufferPool pool;
private UndertowClient client;
- private UndertowClientWrapper() throws IOException, URISyntaxException
{
+ private UndertowClientWrapper() throws IOException {
this.worker = Xnio.getInstance().createWorker(OptionMap.EMPTY);
this.pool = new DefaultByteBufferPool(true, 17 * 1024);
this.client = UndertowClient.getInstance();
diff --git
a/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
b/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
index 779074d..49fbd11 100644
---
a/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
+++
b/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
@@ -130,7 +130,7 @@ public class XmppEndpoint extends DefaultEndpoint
implements HeaderFilterStrateg
}
}
- public Producer createGroupChatProducer() throws Exception {
+ public Producer createGroupChatProducer() {
return new XmppGroupChatProducer(this);
}