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 e633eff463f1a19ecc0fe9c51d1572659d6d474d Author: Gilvan Filho <[email protected]> AuthorDate: Sat Dec 10 00:11:06 2022 -0300 (chores) camel-xj: replace raw empty list by generic one --- .../main/java/org/apache/camel/component/xj/XmlJsonStreamWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-xj/src/main/java/org/apache/camel/component/xj/XmlJsonStreamWriter.java b/components/camel-xj/src/main/java/org/apache/camel/component/xj/XmlJsonStreamWriter.java index 3ad23485878..e6af9f5d4d5 100644 --- a/components/camel-xj/src/main/java/org/apache/camel/component/xj/XmlJsonStreamWriter.java +++ b/components/camel-xj/src/main/java/org/apache/camel/component/xj/XmlJsonStreamWriter.java @@ -312,7 +312,7 @@ public class XmlJsonStreamWriter implements XMLStreamWriter { } void addChild(TreeElement treeElement) { - if (this.childs == Collections.EMPTY_LIST) { + if (this.childs.equals(Collections.emptyList())) { this.childs = new ArrayList<>(1); }
