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 a60dedb Fixed CS for Camel-Jaxb a60dedb is described below commit a60dedbd8ff4ae5d6e66f58083e6c8f8344d8345 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Mar 19 09:47:46 2019 +0100 Fixed CS for Camel-Jaxb --- .../java/org/apache/camel/converter/jaxb/FallbackTypeConverter.java | 4 ++-- .../java/org/apache/camel/jaxb/CamelJaxbFallbackConverterTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/FallbackTypeConverter.java b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/FallbackTypeConverter.java index 024df83..8ec10ed 100644 --- a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/FallbackTypeConverter.java +++ b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/FallbackTypeConverter.java @@ -58,11 +58,11 @@ import org.slf4j.LoggerFactory; @Converter(loader = true) public class FallbackTypeConverter { - private static final Logger LOG = LoggerFactory.getLogger(FallbackTypeConverter.class); - public static final String PRETTY_PRINT = "CamelJaxbPrettyPrint"; public static final String OBJECT_FACTORY = "CamelJaxbObjectFactory"; + private static final Logger LOG = LoggerFactory.getLogger(FallbackTypeConverter.class); + private final Map<AnnotatedElement, JAXBContext> contexts = new HashMap<>(); private final StaxConverter staxConverter = new StaxConverter(); private boolean defaultPrettyPrint = true; diff --git a/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/CamelJaxbFallbackConverterTest.java b/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/CamelJaxbFallbackConverterTest.java index 26743ab..4afbcd4 100644 --- a/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/CamelJaxbFallbackConverterTest.java +++ b/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/CamelJaxbFallbackConverterTest.java @@ -34,7 +34,7 @@ public class CamelJaxbFallbackConverterTest extends ExchangeTestSupport { @Test public void testFallbackConverterWithoutObjectFactory() throws Exception { TypeConverter converter = context.getTypeConverter(); - Foo foo = converter.convertTo(Foo.class, exchange,"<foo><zot name=\"bar1\" value=\"value\" otherValue=\"otherValue\"/></foo>"); + Foo foo = converter.convertTo(Foo.class, exchange, "<foo><zot name=\"bar1\" value=\"value\" otherValue=\"otherValue\"/></foo>"); assertNotNull("foo should not be null", foo); assertEquals("value", foo.getBarRefs().get(0).getValue());