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 d0d81d675d086f123abccbffae32b3da7949df46 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Sat Jun 17 09:45:13 2023 +0200 (chores) camel-jackson: align visibility of the constructor with the one declared in the class --- .../camel/component/jackson/AbstractJacksonDataFormat.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/AbstractJacksonDataFormat.java b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/AbstractJacksonDataFormat.java index 25ad8f9e74a..7bf41509fa0 100644 --- a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/AbstractJacksonDataFormat.java +++ b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/AbstractJacksonDataFormat.java @@ -87,7 +87,7 @@ public abstract class AbstractJacksonDataFormat extends ServiceSupport /** * Use the default Jackson {@link ObjectMapper} and {@link Object} */ - public AbstractJacksonDataFormat() { + protected AbstractJacksonDataFormat() { this(Object.class); } @@ -96,7 +96,7 @@ public abstract class AbstractJacksonDataFormat extends ServiceSupport * * @param unmarshalType the custom unmarshal type */ - public AbstractJacksonDataFormat(Class<?> unmarshalType) { + protected AbstractJacksonDataFormat(Class<?> unmarshalType) { this(unmarshalType, null); } @@ -107,7 +107,7 @@ public abstract class AbstractJacksonDataFormat extends ServiceSupport * @param jsonView marker class to specify properties to be included during marshalling. See also * https://github.com/FasterXML/jackson-annotations/blob/master/src/main/java/com/fasterxml/jackson/annotation/JsonView.java */ - public AbstractJacksonDataFormat(Class<?> unmarshalType, Class<?> jsonView) { + protected AbstractJacksonDataFormat(Class<?> unmarshalType, Class<?> jsonView) { this.unmarshalType = unmarshalType; this.jsonView = jsonView; } @@ -118,7 +118,7 @@ public abstract class AbstractJacksonDataFormat extends ServiceSupport * @param mapper the custom mapper * @param unmarshalType the custom unmarshal type */ - public AbstractJacksonDataFormat(ObjectMapper mapper, Class<?> unmarshalType) { + protected AbstractJacksonDataFormat(ObjectMapper mapper, Class<?> unmarshalType) { this(mapper, unmarshalType, null); } @@ -130,7 +130,7 @@ public abstract class AbstractJacksonDataFormat extends ServiceSupport * @param jsonView marker class to specify properties to be included during marshalling. See also * https://github.com/FasterXML/jackson-annotations/blob/master/src/main/java/com/fasterxml/jackson/annotation/JsonView.java */ - public AbstractJacksonDataFormat(ObjectMapper mapper, Class<?> unmarshalType, Class<?> jsonView) { + protected AbstractJacksonDataFormat(ObjectMapper mapper, Class<?> unmarshalType, Class<?> jsonView) { this.objectMapper = mapper; this.unmarshalType = unmarshalType; this.jsonView = jsonView;
