camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject svn commit: r1464691 - /camel/trunk/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/JaxbDataFormat.java
Date Thu, 04 Apr 2013 19:34:07 GMT
Author: bvahdat
Date: Thu Apr  4 19:34:06 2013
New Revision: 1464691

URL: http://svn.apache.org/r1464691
Log:
Let's make use of the constant name instead of it's value directly.

Modified:
    camel/trunk/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/JaxbDataFormat.java

Modified: camel/trunk/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/JaxbDataFormat.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/JaxbDataFormat.java?rev=1464691&r1=1464690&r2=1464691&view=diff
==============================================================================
--- camel/trunk/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/JaxbDataFormat.java
(original)
+++ camel/trunk/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/JaxbDataFormat.java
Thu Apr  4 19:34:06 2013
@@ -349,7 +349,7 @@ public class JaxbDataFormat extends Serv
             unmarshaller.setEventHandler(new ValidationEventHandler() {
                 public boolean handleEvent(ValidationEvent event) {
                     // stop unmarshalling if the event is an ERROR or FATAL ERROR
-                    return event.getSeverity() == 0;
+                    return event.getSeverity() == ValidationEvent.WARNING;
                 }
             });
         }
@@ -364,7 +364,7 @@ public class JaxbDataFormat extends Serv
             marshaller.setEventHandler(new ValidationEventHandler() {
                 public boolean handleEvent(ValidationEvent event) {
                     // stop marshalling if the event is an ERROR or FATAL ERROR
-                    return event.getSeverity() == 0;
+                    return event.getSeverity() == ValidationEvent.WARNING;
                 }
             });
         }



Mime
View raw message