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 c8fa737 Revert "Camel-core-engine: Remove exceptions which can not be
thrown from throws declarations of methods. (#3711)"
c8fa737 is described below
commit c8fa737a30a712470ebe4cf69d4137f393c6d3b3
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Apr 7 09:09:42 2020 +0200
Revert "Camel-core-engine: Remove exceptions which can not be thrown from
throws declarations of methods. (#3711)"
This reverts commit 4d1dffb982d47b0aab1084c283bc28dd4202552d.
---
.../org/apache/camel/builder/ThreadPoolBuilder.java | 18 ++++++++++++------
.../camel/model/cloud/ServiceCallConfiguration.java | 2 +-
.../org/apache/camel/reifier/ProcessorReifier.java | 2 +-
3 files changed, 14 insertions(+), 8 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 90a3e72..d7b06ff 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,8 +73,9 @@ 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() {
+ public ExecutorService build() throws Exception {
return build(null, null);
}
@@ -83,8 +84,9 @@ 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) {
+ public ExecutorService build(String name) throws Exception {
return build(null, name);
}
@@ -95,8 +97,9 @@ 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) {
+ public ExecutorService build(Object source, String name) throws Exception {
return context.getExecutorServiceManager().newThreadPool(source, name,
profile);
}
@@ -104,8 +107,9 @@ 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() {
+ public ScheduledExecutorService buildScheduled() throws Exception {
return buildScheduled(null, null);
}
@@ -114,8 +118,9 @@ 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) {
+ public ScheduledExecutorService buildScheduled(String name) throws
Exception {
return buildScheduled(null, name);
}
@@ -126,8 +131,9 @@ 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)
{
+ public ScheduledExecutorService buildScheduled(Object source, String name)
throws Exception {
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 cef87e3..610b5ee 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) {
+ protected Map<String, String> getPropertiesAsMap(CamelContext
camelContext) throws Exception {
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 dbd8dd4..7032398 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) {
+ protected Processor createCompositeProcessor(List<Processor> list) throws
Exception {
return Pipeline.newInstance(camelContext, list);
}