camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmuel...@apache.org
Subject git commit: CAMEL-6630: Validation using JAXB format is not thread safe
Date Sat, 24 Aug 2013 20:37:31 GMT
Updated Branches:
  refs/heads/master 46e5184aa -> b5784ca0a


CAMEL-6630: Validation using JAXB format is not thread safe


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b5784ca0
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b5784ca0
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b5784ca0

Branch: refs/heads/master
Commit: b5784ca0a5e5ff660ee03fcf868d77d142e9b852
Parents: 46e5184
Author: cmueller <cmueller@apache.org>
Authored: Sat Aug 24 22:36:07 2013 +0200
Committer: cmueller <cmueller@apache.org>
Committed: Sat Aug 24 22:37:33 2013 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/converter/jaxb/JaxbDataFormat.java     | 2 +-
 .../jaxb/ConcurrentJaxbDataFormatSchemaValidationTest.java       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b5784ca0/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/JaxbDataFormat.java
----------------------------------------------------------------------
diff --git a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/JaxbDataFormat.java
b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/JaxbDataFormat.java
index 8118d89..bf06318 100644
--- a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/JaxbDataFormat.java
+++ b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/JaxbDataFormat.java
@@ -226,7 +226,7 @@ public class JaxbDataFormat extends ServiceSupport implements DataFormat,
CamelC
         return schemaFactory;
     }
 
-    public void setSchema(SchemaFactory schemaFactory) {
+    public void setSchemaFactory(SchemaFactory schemaFactory) {
         this.schemaFactory = schemaFactory;
     }
 

http://git-wip-us.apache.org/repos/asf/camel/blob/b5784ca0/components/camel-jaxb/src/test/java/org/apache/camel/converter/jaxb/ConcurrentJaxbDataFormatSchemaValidationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jaxb/src/test/java/org/apache/camel/converter/jaxb/ConcurrentJaxbDataFormatSchemaValidationTest.java
b/components/camel-jaxb/src/test/java/org/apache/camel/converter/jaxb/ConcurrentJaxbDataFormatSchemaValidationTest.java
index 15ea750..50d77b5 100644
--- a/components/camel-jaxb/src/test/java/org/apache/camel/converter/jaxb/ConcurrentJaxbDataFormatSchemaValidationTest.java
+++ b/components/camel-jaxb/src/test/java/org/apache/camel/converter/jaxb/ConcurrentJaxbDataFormatSchemaValidationTest.java
@@ -55,7 +55,7 @@ public class ConcurrentJaxbDataFormatSchemaValidationTest extends CamelTestSuppo
         }
 
         assertMockEndpointsSatisfied();
-        log.info("Validation of {} messages took {} ms",testCount, (System.currentTimeMillis()
- start));
+        log.info("Validation of {} messages took {} ms", testCount, System.currentTimeMillis()
- start);
 
         String payload = mockMarshall.getExchanges().get(0).getIn().getBody(String.class);
         log.info(payload);
@@ -92,7 +92,7 @@ public class ConcurrentJaxbDataFormatSchemaValidationTest extends CamelTestSuppo
         }
 
         assertMockEndpointsSatisfied(20, TimeUnit.SECONDS);
-        log.info("Validation of {} messages took {} ms",testCount, (System.currentTimeMillis()
- start));
+        log.info("Validation of {} messages took {} ms", testCount, System.currentTimeMillis()
- start);
 
         Person person = mockUnmarshall.getExchanges().get(0).getIn().getBody(Person.class);
 


Mime
View raw message