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 e1bbb51b066ec80bccc7c5862f7b43ba3ae7f020 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Wed Apr 13 11:11:37 2022 +0200 CAMEL-17763: cleaned up unused exceptions in camel-thrift --- .../org/apache/camel/component/thrift/generated/Calculator.java | 8 ++++---- .../camel/component/thrift/impl/CalculatorSyncServerImpl.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/camel-thrift/src/test/java/org/apache/camel/component/thrift/generated/Calculator.java b/components/camel-thrift/src/test/java/org/apache/camel/component/thrift/generated/Calculator.java index 5437b86465a..7b21de8e611 100644 --- a/components/camel-thrift/src/test/java/org/apache/camel/component/thrift/generated/Calculator.java +++ b/components/camel-thrift/src/test/java/org/apache/camel/component/thrift/generated/Calculator.java @@ -2794,7 +2794,7 @@ public class Calculator { return sb.toString(); } - public void validate() throws org.apache.thrift.TException { + public void validate() { // check for required fields // check for sub-struct validity if (w != null) { @@ -3928,7 +3928,7 @@ public class Calculator { return sb.toString(); } - public void validate() throws org.apache.thrift.TException { + public void validate() { // check for required fields // check for sub-struct validity if (w != null) { @@ -4301,7 +4301,7 @@ public class Calculator { return sb.toString(); } - public void validate() throws org.apache.thrift.TException { + public void validate() { // check for required fields // check for sub-struct validity if (success != null) { @@ -5643,7 +5643,7 @@ public class Calculator { return sb.toString(); } - public void validate() throws org.apache.thrift.TException { + public void validate() { // check for required fields // check for sub-struct validity if (v9 != null) { diff --git a/components/camel-thrift/src/test/java/org/apache/camel/component/thrift/impl/CalculatorSyncServerImpl.java b/components/camel-thrift/src/test/java/org/apache/camel/component/thrift/impl/CalculatorSyncServerImpl.java index acf7ba82989..127f6221769 100644 --- a/components/camel-thrift/src/test/java/org/apache/camel/component/thrift/impl/CalculatorSyncServerImpl.java +++ b/components/camel-thrift/src/test/java/org/apache/camel/component/thrift/impl/CalculatorSyncServerImpl.java @@ -41,7 +41,7 @@ public class CalculatorSyncServerImpl implements Calculator.Iface { } @Override - public int calculate(int logId, Work work) throws InvalidOperation, TException { + public int calculate(int logId, Work work) throws TException { int val = 0; switch (work.op) { case ADD:
