You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/01/05 09:57:14 UTC
[camel] 06/12: (chores) camel-mongodb: avoid risky unboxing
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit ad72aa8603a3535091e2b830263c1d22915cb098
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Jan 4 17:54:16 2023 +0100
(chores) camel-mongodb: avoid risky unboxing
---
.../java/org/apache/camel/component/mongodb/MongoDbTailingThread.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingThread.java b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingThread.java
index b2c77475483..4e2c9bebd08 100644
--- a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingThread.java
+++ b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingThread.java
@@ -49,7 +49,7 @@ class MongoDbTailingThread extends MongoAbstractConsumerThread {
String.format("db: %s, col: %s", endpoint.getMongoDatabase(), endpoint.getCollection()));
}
- if (!isCollectionCapped()) {
+ if (Boolean.FALSE.equals(isCollectionCapped())) {
throw new CamelMongoDbException(
String.format(
"Tailable cursors are only compatible with capped collections, and collection %s is not capped",