You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2025/10/23 17:53:27 UTC
(activemq-artemis) branch main updated: ARTEMIS-5662 add JavaDoc related to SimpleString
This is an automated email from the ASF dual-hosted git repository.
jbertram 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 d07069a2bf ARTEMIS-5662 add JavaDoc related to SimpleString
d07069a2bf is described below
commit d07069a2bfb51cda5070369046f01cfcac487385
Author: Justin Bertram <jb...@apache.org>
AuthorDate: Thu Oct 23 12:52:46 2025 -0500
ARTEMIS-5662 add JavaDoc related to SimpleString
---
.../java/org/apache/activemq/artemis/api/core/SimpleString.java | 3 +++
.../main/java/org/apache/activemq/artemis/utils/AbstractPool.java | 7 +++++++
2 files changed, 10 insertions(+)
diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/SimpleString.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/SimpleString.java
index 6a9cd2b9e9..685dd6923e 100644
--- a/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/SimpleString.java
+++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/SimpleString.java
@@ -702,6 +702,9 @@ public final class SimpleString implements CharSequence, Serializable, Comparabl
super();
}
+ /**
+ * @see AbstractPool#AbstractPool(int)
+ */
public StringSimpleStringPool(final int capacity) {
super(capacity);
}
diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/AbstractPool.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/AbstractPool.java
index 5978031dfb..14a2ecfb6b 100644
--- a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/AbstractPool.java
+++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/AbstractPool.java
@@ -38,6 +38,13 @@ public abstract class AbstractPool<I, O> {
this(DEFAULT_POOL_CAPACITY);
}
+ /**
+ * Constructs an AbstractPool instance with a specified initial capacity. The capacity is rounded up to the next
+ * highest power of two, and this determines the size of the internal array used by the pool.
+ *
+ * @param capacity the desired initial capacity of the pool
+ * @see MathUtil#findNextPositivePowerOfTwo(int)
+ */
public AbstractPool(final int capacity) {
entries = (O[]) new Object[MathUtil.findNextPositivePowerOfTwo(capacity)];
mask = entries.length - 1;
---------------------------------------------------------------------
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