Author: ningjiang
Date: Tue Oct 23 05:57:24 2012
New Revision: 1401166
URL: http://svn.apache.org/viewvc?rev=1401166&view=rev
Log:
CAMEL-5733 Fixed the CS error of SpringBatchProducer
Modified:
camel/trunk/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchProducer.java
Modified:
camel/trunk/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchProducer.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchProducer.java?rev=1401166&r1=1401165&r2=1401166&view=diff
==============================================================================
---
camel/trunk/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchProducer.java
(original)
+++
camel/trunk/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchProducer.java
Tue Oct 23 05:57:24 2012
@@ -56,7 +56,7 @@ public class SpringBatchProducer extends
parametersBuilder.addLong(headerKey, (Long) headerValue);
} else if (headerValue instanceof Double) {
parametersBuilder.addDouble(headerKey, (Double) headerValue);
- } else if (headerValue != null){
+ } else if (headerValue != null) {
parametersBuilder.addString(headerKey, headerValue.toString());
} else {
// if the value is null we just put String with null value
here to avoid the NPE