You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2024/06/20 00:20:02 UTC
(activemq-artemis) branch main updated: ARTEMIS-4826 avoid implicit int conversion to long
This is an automated email from the ASF dual-hosted git repository.
clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new be1459c939 ARTEMIS-4826 avoid implicit int conversion to long
be1459c939 is described below
commit be1459c9397f30d82dbbaad5141e2c54a6686b9e
Author: Justin Bertram <jb...@apache.org>
AuthorDate: Wed Jun 19 12:43:14 2024 -0500
ARTEMIS-4826 avoid implicit int conversion to long
---
.../org/apache/activemq/artemis/core/paging/impl/PagingStoreImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreImpl.java
index 8b17777b81..55bc1e3fcd 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreImpl.java
@@ -420,7 +420,7 @@ public class PagingStoreImpl implements PagingStore {
public long getMaxSize() {
if (maxSize <= 0) {
// if maxSize <= 0, we will return 2 pages for de-page purposes
- return pageSize * 2;
+ return pageSize * 2L;
} else {
return maxSize;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@activemq.apache.org
For additional commands, e-mail: commits-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact