You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/12/03 03:28:47 UTC

[2/3] camel git commit: CAMEL-8101 CAMEL-8100 Fixed the CS error

CAMEL-8101 CAMEL-8100 Fixed the CS error


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

Branch: refs/heads/master
Commit: 0a8dbaa3f6c701fbcbd6aada87e3508e659dee46
Parents: 37eb0b1
Author: Willem Jiang <wi...@gmail.com>
Authored: Wed Dec 3 10:13:22 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Wed Dec 3 10:13:22 2014 +0800

----------------------------------------------------------------------
 .../java/org/apache/camel/component/mongodb/MongoDbEndpoint.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/0a8dbaa3/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
index b5572da..39bd403 100644
--- a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
+++ b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
@@ -170,7 +170,7 @@ public class MongoDbEndpoint extends DefaultEndpoint {
         if (db == null) {
             throw new CamelMongoDbException("Could not initialise MongoDbComponent. Database " + database + " does not exist.");
         }
-        if(collection != null) {
+        if (collection != null) {
             if (!createCollection && !db.collectionExists(collection)) {
                 throw new CamelMongoDbException("Could not initialise MongoDbComponent. Collection " + collection + " and createCollection is false.");
             }