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 2ce9505183ac90fad52807b83097794e007ac4f1 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Tue Mar 8 08:48:45 2022 +0100 CAMEL-15520: avoid using the deprecated Character constructor --- .../camel-util-json/src/main/java/org/apache/camel/util/json/Yylex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/camel-util-json/src/main/java/org/apache/camel/util/json/Yylex.java b/tooling/camel-util-json/src/main/java/org/apache/camel/util/json/Yylex.java index f12e5ad..8fc3a75 100644 --- a/tooling/camel-util-json/src/main/java/org/apache/camel/util/json/Yylex.java +++ b/tooling/camel-util-json/src/main/java/org/apache/camel/util/json/Yylex.java @@ -615,7 +615,7 @@ class Yylex { case 39: break; case 1: { - throw new DeserializationException(yychar, DeserializationException.Problems.UNEXPECTED_CHARACTER, new Character(yycharat(0))); + throw new DeserializationException(yychar, DeserializationException.Problems.UNEXPECTED_CHARACTER, Character.valueOf(yycharat(0))); } case 40: break;
