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

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


The following commit(s) were added to refs/heads/master by this push:
     new 4d1dffb  Camel-core-engine: Remove exceptions which can not be thrown 
from throws declarations of methods. (#3711)
4d1dffb is described below

commit 4d1dffb982d47b0aab1084c283bc28dd4202552d
Author: Pascal Schumacher <[email protected]>
AuthorDate: Tue Apr 7 09:02:55 2020 +0200

    Camel-core-engine: Remove exceptions which can not be thrown from throws 
declarations of methods. (#3711)
---
 .../org/apache/camel/builder/ThreadPoolBuilder.java    | 18 ++++++------------
 .../camel/model/cloud/ServiceCallConfiguration.java    |  2 +-
 .../org/apache/camel/reifier/ProcessorReifier.java     |  2 +-
 3 files changed, 8 insertions(+), 14 deletions(-)

diff --git 
a/core/camel-core-engine/src/main/java/org/apache/camel/builder/ThreadPoolBuilder.java
 
b/core/camel-core-engine/src/main/java/org/apache/camel/builder/ThreadPoolBuilder.java
index d7b06ff..90a3e72 100644
--- 
a/core/camel-core-engine/src/main/java/org/apache/camel/builder/ThreadPoolBuilder.java
+++ 
b/core/camel-core-engine/src/main/java/org/apache/camel/builder/ThreadPoolBuilder.java
@@ -73,9 +73,8 @@ public final class ThreadPoolBuilder {
      * Builds the new thread pool
      *
      * @return the created thread pool
-     * @throws Exception is thrown if error building the thread pool
      */
-    public ExecutorService build() throws Exception {
+    public ExecutorService build() {
         return build(null, null);
     }
 
@@ -84,9 +83,8 @@ public final class ThreadPoolBuilder {
      *
      * @param name name which is appended to the thread name
      * @return the created thread pool
-     * @throws Exception is thrown if error building the thread pool
      */
-    public ExecutorService build(String name) throws Exception {
+    public ExecutorService build(String name) {
         return build(null, name);
     }
 
@@ -97,9 +95,8 @@ public final class ThreadPoolBuilder {
      *            passed in as parameter
      * @param name name which is appended to the thread name
      * @return the created thread pool
-     * @throws Exception is thrown if error building the thread pool
      */
-    public ExecutorService build(Object source, String name) throws Exception {
+    public ExecutorService build(Object source, String name) {
         return context.getExecutorServiceManager().newThreadPool(source, name, 
profile);
     }
 
@@ -107,9 +104,8 @@ public final class ThreadPoolBuilder {
      * Builds the new scheduled thread pool
      *
      * @return the created scheduled thread pool
-     * @throws Exception is thrown if error building the scheduled thread pool
      */
-    public ScheduledExecutorService buildScheduled() throws Exception {
+    public ScheduledExecutorService buildScheduled() {
         return buildScheduled(null, null);
     }
 
@@ -118,9 +114,8 @@ public final class ThreadPoolBuilder {
      *
      * @param name name which is appended to the thread name
      * @return the created scheduled thread pool
-     * @throws Exception is thrown if error building the scheduled thread pool
      */
-    public ScheduledExecutorService buildScheduled(String name) throws 
Exception {
+    public ScheduledExecutorService buildScheduled(String name) {
         return buildScheduled(null, name);
     }
 
@@ -131,9 +126,8 @@ public final class ThreadPoolBuilder {
      *            passed in as parameter
      * @param name name which is appended to the thread name
      * @return the created scheduled thread pool
-     * @throws Exception is thrown if error building the scheduled thread pool
      */
-    public ScheduledExecutorService buildScheduled(Object source, String name) 
throws Exception {
+    public ScheduledExecutorService buildScheduled(Object source, String name) 
{
         return 
context.getExecutorServiceManager().newScheduledThreadPool(source, name, 
profile);
     }
 
diff --git 
a/core/camel-core-engine/src/main/java/org/apache/camel/model/cloud/ServiceCallConfiguration.java
 
b/core/camel-core-engine/src/main/java/org/apache/camel/model/cloud/ServiceCallConfiguration.java
index 610b5ee..cef87e3 100644
--- 
a/core/camel-core-engine/src/main/java/org/apache/camel/model/cloud/ServiceCallConfiguration.java
+++ 
b/core/camel-core-engine/src/main/java/org/apache/camel/model/cloud/ServiceCallConfiguration.java
@@ -77,7 +77,7 @@ public abstract class ServiceCallConfiguration extends 
IdentifiedType {
         return this;
     }
 
-    protected Map<String, String> getPropertiesAsMap(CamelContext 
camelContext) throws Exception {
+    protected Map<String, String> getPropertiesAsMap(CamelContext 
camelContext) {
         Map<String, String> answer;
 
         if (properties == null || properties.isEmpty()) {
diff --git 
a/core/camel-core-engine/src/main/java/org/apache/camel/reifier/ProcessorReifier.java
 
b/core/camel-core-engine/src/main/java/org/apache/camel/reifier/ProcessorReifier.java
index 7032398..dbd8dd4 100644
--- 
a/core/camel-core-engine/src/main/java/org/apache/camel/reifier/ProcessorReifier.java
+++ 
b/core/camel-core-engine/src/main/java/org/apache/camel/reifier/ProcessorReifier.java
@@ -688,7 +688,7 @@ public abstract class ProcessorReifier<T extends 
ProcessorDefinition<?>> extends
      * to using a {@link Pipeline} but derived classes could change the
      * behaviour
      */
-    protected Processor createCompositeProcessor(List<Processor> list) throws 
Exception {
+    protected Processor createCompositeProcessor(List<Processor> list) {
         return Pipeline.newInstance(camelContext, list);
     }
 

Reply via email to