camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [3/3] git commit: Fixed CS
Date Fri, 05 Sep 2014 06:52:53 GMT
Fixed CS


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

Branch: refs/heads/master
Commit: fd818acb53c83f3709c6d268bf523832b319a3c4
Parents: 2ab9363
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Fri Sep 5 08:52:38 2014 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Fri Sep 5 08:52:38 2014 +0200

----------------------------------------------------------------------
 .../org/apache/camel/component/mongodb/MongoDbProducer.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/fd818acb/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbProducer.java
b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbProducer.java
index 72c27a9..a3fb73a 100644
--- a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbProducer.java
+++ b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbProducer.java
@@ -340,10 +340,10 @@ public class MongoDbProducer extends DefaultProducer {
         DBCollection dbCol = calculateCollection(exchange);
         DBObject query = exchange.getIn().getBody(DBObject.class);
         Long answer;
-        if (query == null){
-            answer = Long.valueOf(dbCol.count());    
+        if (query == null) {
+            answer = dbCol.count();
         } else {
-            answer = Long.valueOf(dbCol.count(query));    
+            answer = dbCol.count(query);
         }
         Message resultMessage = prepareResponseMessage(exchange, MongoDbOperation.count);
         resultMessage.setBody(answer);


Mime
View raw message