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 18485fa0c8a9dcd69d22906afd9dfa4ceee15066 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Thu May 16 06:14:22 2024 +0200 (chores) camel-jackson: use Boolean.parseBoolean --- .../camel/component/jackson/converter/JacksonTypeConverters.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/converter/JacksonTypeConverters.java b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/converter/JacksonTypeConverters.java index 998a2bc7a52..b7f7f648c40 100644 --- a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/converter/JacksonTypeConverters.java +++ b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/converter/JacksonTypeConverters.java @@ -220,14 +220,14 @@ public final class JacksonTypeConverters { String text = globalOptions.get(JacksonConstants.ENABLE_TYPE_CONVERTER); if (text != null) { text = exchange.getContext().resolvePropertyPlaceholders(text); - enabled = "true".equalsIgnoreCase(text); + enabled = Boolean.parseBoolean(text); } // pojoOnly is disabled by default text = globalOptions.get(JacksonConstants.TYPE_CONVERTER_TO_POJO); if (text != null) { text = exchange.getContext().resolvePropertyPlaceholders(text); - toPojo = "true".equalsIgnoreCase(text); + toPojo = Boolean.parseBoolean(text); } moduleClassNames = globalOptions.get(JacksonConstants.TYPE_CONVERTER_MODULE_CLASS_NAMES);
