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
The following commit(s) were added to refs/heads/main by this push: new a1519eecd4c (chores) camel-google-pub-sub-lite: do cast to avoid a potential overflow a1519eecd4c is described below commit a1519eecd4ce445791195f0ad1d8dfc7c1e3b0f4 Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Thu Apr 25 13:46:51 2024 +0200 (chores) camel-google-pub-sub-lite: do cast to avoid a potential overflow --- .../camel/component/google/pubsublite/GooglePubsubLiteComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-google/camel-google-pubsub-lite/src/main/java/org/apache/camel/component/google/pubsublite/GooglePubsubLiteComponent.java b/components/camel-google/camel-google-pubsub-lite/src/main/java/org/apache/camel/component/google/pubsublite/GooglePubsubLiteComponent.java index d6f3d354d7d..e60f61fe1ac 100644 --- a/components/camel-google/camel-google-pubsub-lite/src/main/java/org/apache/camel/component/google/pubsublite/GooglePubsubLiteComponent.java +++ b/components/camel-google/camel-google-pubsub-lite/src/main/java/org/apache/camel/component/google/pubsublite/GooglePubsubLiteComponent.java @@ -70,7 +70,7 @@ public class GooglePubsubLiteComponent extends DefaultComponent { @Metadata(label = "consumer,advanced", defaultValue = "10485760", description = "The number of quota bytes that may be outstanding to the client. " + "Must be greater than the allowed size of the largest message (1 MiB).") - private long consumerBytesOutstanding = 10 * 1024 * 1024; + private long consumerBytesOutstanding = 10 * 1024 * 1024L; @Metadata(label = "consumer,advanced", defaultValue = "1000", description = "The number of messages that may be outstanding to the client. Must be >0.")