Updated Branches:
  refs/heads/camel-2.11.x 51423f7f0 -> 6e7036369

fixed two tiny bugs of the HL7DataFormat#isValidate() & 
HL7MLLPConfig#isValidate() methods.

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

Branch: refs/heads/camel-2.11.x
Commit: 6e70363698f66432616729b1abe9d1e77f81277f
Parents: 51423f7
Author: Babak Vahdat <bvah...@apache.org>
Authored: Wed May 22 21:46:23 2013 +0200
Committer: Babak Vahdat <bvah...@apache.org>
Committed: Wed May 22 21:46:23 2013 +0200

----------------------------------------------------------------------
 .../apache/camel/component/hl7/HL7DataFormat.java  |    2 +-
 .../apache/camel/component/hl7/HL7MLLPConfig.java  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/6e703636/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/HL7DataFormat.java
----------------------------------------------------------------------
diff --git 
a/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/HL7DataFormat.java
 
b/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/HL7DataFormat.java
index c8bf911..949aaed 100644
--- 
a/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/HL7DataFormat.java
+++ 
b/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/HL7DataFormat.java
@@ -118,7 +118,7 @@ public class HL7DataFormat implements DataFormat {
     }
 
     public boolean isValidate() {
-        return parser.getValidationContext() instanceof NoValidation;
+        return !(parser.getValidationContext() instanceof NoValidation);
     }
 
     public void setValidate(boolean validate) {

http://git-wip-us.apache.org/repos/asf/camel/blob/6e703636/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/HL7MLLPConfig.java
----------------------------------------------------------------------
diff --git 
a/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/HL7MLLPConfig.java
 
b/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/HL7MLLPConfig.java
index cf9238b..d9dd2cd 100644
--- 
a/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/HL7MLLPConfig.java
+++ 
b/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/HL7MLLPConfig.java
@@ -86,7 +86,7 @@ class HL7MLLPConfig {
     }
 
     public boolean isValidate() {
-        return parser.getValidationContext() instanceof NoValidation;
+        return !(parser.getValidationContext() instanceof NoValidation);
     }
 
     public void setValidate(boolean validate) {

Reply via email to