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 2022/10/11 07:43:26 UTC
[camel] branch main updated: (chores) camel-base: removed unused exceptions in the ObjectConverter
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 e4f6186cf8f (chores) camel-base: removed unused exceptions in the ObjectConverter
e4f6186cf8f is described below
commit e4f6186cf8f6cef4e84db038c4276c52e2c4cd4f
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Oct 11 08:38:26 2022 +0200
(chores) camel-base: removed unused exceptions in the ObjectConverter
---
.../org/apache/camel/converter/ObjectConverter.java | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/core/camel-base/src/main/java/org/apache/camel/converter/ObjectConverter.java b/core/camel-base/src/main/java/org/apache/camel/converter/ObjectConverter.java
index 62931f47b6e..44196407fee 100644
--- a/core/camel-base/src/main/java/org/apache/camel/converter/ObjectConverter.java
+++ b/core/camel-base/src/main/java/org/apache/camel/converter/ObjectConverter.java
@@ -16,7 +16,6 @@
*/
package org.apache.camel.converter;
-import java.io.IOException;
import java.math.BigInteger;
import java.util.Iterator;
@@ -93,7 +92,7 @@ public final class ObjectConverter {
}
@Converter(order = 7)
- public static Byte toByte(byte[] value, Exchange exchange) throws IOException {
+ public static Byte toByte(byte[] value, Exchange exchange) {
String str = new String(value, ExchangeHelper.getCharset(exchange));
return Byte.valueOf(str);
}
@@ -104,7 +103,7 @@ public final class ObjectConverter {
}
@Converter(order = 9)
- public static char[] toCharArray(byte[] value, Exchange exchange) throws IOException {
+ public static char[] toCharArray(byte[] value, Exchange exchange) {
String str = new String(value, ExchangeHelper.getCharset(exchange));
return str.toCharArray();
}
@@ -173,7 +172,7 @@ public final class ObjectConverter {
}
@Converter(order = 18)
- public static Short toShort(byte[] value, Exchange exchange) throws IOException {
+ public static Short toShort(byte[] value, Exchange exchange) {
String str = new String(value, ExchangeHelper.getCharset(exchange));
return Short.valueOf(str);
}
@@ -195,7 +194,7 @@ public final class ObjectConverter {
}
@Converter(order = 21)
- public static Integer toInteger(byte[] value, Exchange exchange) throws IOException {
+ public static Integer toInteger(byte[] value, Exchange exchange) {
String str = new String(value, ExchangeHelper.getCharset(exchange));
return Integer.valueOf(str);
}
@@ -217,7 +216,7 @@ public final class ObjectConverter {
}
@Converter(order = 24)
- public static Long toLong(byte[] value, Exchange exchange) throws IOException {
+ public static Long toLong(byte[] value, Exchange exchange) {
String str = new String(value, ExchangeHelper.getCharset(exchange));
return Long.valueOf(str);
}
@@ -263,7 +262,7 @@ public final class ObjectConverter {
}
@Converter(order = 28)
- public static Float toFloat(byte[] value, Exchange exchange) throws IOException {
+ public static Float toFloat(byte[] value, Exchange exchange) {
String str = new String(value, ExchangeHelper.getCharset(exchange));
return Float.valueOf(str);
}
@@ -285,7 +284,7 @@ public final class ObjectConverter {
}
@Converter(order = 31)
- public static Double toDouble(byte[] value, Exchange exchange) throws IOException {
+ public static Double toDouble(byte[] value, Exchange exchange) {
String str = new String(value, ExchangeHelper.getCharset(exchange));
return Double.valueOf(str);
}
@@ -323,7 +322,7 @@ public final class ObjectConverter {
}
@Converter(order = 38)
- public static Boolean toBoolean(byte[] value, Exchange exchange) throws IOException {
+ public static Boolean toBoolean(byte[] value, Exchange exchange) {
String str = new String(value, ExchangeHelper.getCharset(exchange));
return toBoolean(str);
}
@@ -346,7 +345,7 @@ public final class ObjectConverter {
}
@Converter(order = 40)
- public static Number toNumber(byte[] value, Exchange exchange) throws IOException {
+ public static Number toNumber(byte[] value, Exchange exchange) {
String str = new String(value, ExchangeHelper.getCharset(exchange));
return toNumber(str);
}