You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by co...@apache.org on 2020/02/18 15:24:12 UTC
[camel] 03/05: CAMEL-14532 - In xml model the types must be String
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch camel-3.0.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit b00d36ca0e9b9297a3592da620a40901a8594738
Author: Andrea Cosentino <an...@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 951b1a6..33e86de 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;
}
}