This is an automated email from the ASF dual-hosted git repository.
rmannibucau pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openwebbeans.git
The following commit(s) were added to refs/heads/main by this push:
new 73afe563d [OWB-1463] avoid to overallocate too much
73afe563d is described below
commit 73afe563d6d2bae9be9b160d3cdeccf3c09eb4b0
Author: Romain Manni-Bucau <[email protected]>
AuthorDate: Sat Jul 4 14:28:55 2026 +0200
[OWB-1463] avoid to overallocate too much
---
.../src/main/java/org/apache/webbeans/config/BeansDeployer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
b/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
index 072af339c..34a03a675 100644
--- a/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
+++ b/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
@@ -1213,7 +1213,7 @@ public class BeansDeployer
if (beans != null && beans.size() > 0)
{
- Set<String> beanNames = new HashSet<>(200);
+ Set<String> beanNames = new HashSet<>(Math.min(beans.size(), 200));
for (Bean<?> bean : beans)
{
try