This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new cf1803b CAMEL-14532 - In xml model the types must be String cf1803b is described below commit cf1803b29ba706ff44e9ca95a1f5399fd0b68c8f Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Feb 18 14:07:26 2020 +0100 CAMEL-14532 - In xml model the types must be String --- .../org/apache/camel/model/dataformat/YAMLDataFormat.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/YAMLDataFormat.java b/core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/YAMLDataFormat.java index 0d97b75..ebdc209 100644 --- a/core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/YAMLDataFormat.java +++ b/core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/YAMLDataFormat.java @@ -65,10 +65,10 @@ public class YAMLDataFormat extends DataFormatDefinition { private List<YAMLTypeFilterDefinition> typeFilters; @XmlAttribute @Metadata(javaType = "java.lang.Integer", defaultValue = "50") - private int maxAliasesForCollections = 50; + private String maxAliasesForCollections = "50"; @XmlAttribute - @Metadata(javaType = "java.lang.Boolean", defaultValue = "false") - private boolean allowRecursiveKeys; + @Metadata(javaType = "java.lang.Boolean") + private String allowRecursiveKeys; public YAMLDataFormat() { this(YAMLLibrary.SnakeYAML); @@ -221,25 +221,25 @@ public class YAMLDataFormat extends DataFormatDefinition { this.typeFilters = typeFilters; } - public int getMaxAliasesForCollections() { + public String getMaxAliasesForCollections() { return maxAliasesForCollections; } /** * Set the maximum amount of aliases allowed for collections. */ - public void setMaxAliasesForCollections(int maxAliasesForCollections) { + public void setMaxAliasesForCollections(String maxAliasesForCollections) { this.maxAliasesForCollections = maxAliasesForCollections; } - public boolean isAllowRecursiveKeys() { + public String isAllowRecursiveKeys() { return allowRecursiveKeys; } /** * Set whether recursive keys are allowed. */ - public void setAllowRecursiveKeys(boolean allowRecursiveKeys) { + public void setAllowRecursiveKeys(String allowRecursiveKeys) { this.allowRecursiveKeys = allowRecursiveKeys; } }