You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/11/29 13:45:38 UTC

(commons-pool) branch POOL_2_X updated (99cb680f -> aae2e7d0)

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a change to branch POOL_2_X
in repository https://gitbox.apache.org/repos/asf/commons-pool.git


    from 99cb680f Bump github/codeql-action from 4.31.4 to 4.31.5
     new 79053f23 Fix indentation, longer line
     new aae2e7d0 Internal: Make our custom LinkedBlockingDeque implement BlockingDeque like the JRE's version

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java  | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)


(commons-pool) 02/02: Internal: Make our custom LinkedBlockingDeque implement BlockingDeque like the JRE's version

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch POOL_2_X
in repository https://gitbox.apache.org/repos/asf/commons-pool.git

commit aae2e7d0b6398e8de05d18a5a828c6e80352746c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 29 13:45:30 2025 +0000

    Internal: Make our custom LinkedBlockingDeque implement BlockingDeque
    like the JRE's version
---
 src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java b/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java
index e6d05f96..34b2b355 100644
--- a/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java
+++ b/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java
@@ -22,10 +22,10 @@ import java.io.Serializable;
 import java.time.Duration;
 import java.util.AbstractQueue;
 import java.util.Collection;
-import java.util.Deque;
 import java.util.Iterator;
 import java.util.NoSuchElementException;
 import java.util.Objects;
+import java.util.concurrent.BlockingDeque;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.locks.Condition;
 
@@ -66,7 +66,7 @@ import java.util.concurrent.locks.Condition;
  * @since 2.0
  */
 final class LinkedBlockingDeque<E> extends AbstractQueue<E>
-        implements Deque<E>, Serializable {
+        implements BlockingDeque<E>, Serializable {
 
     /*
      * Implemented as a simple doubly-linked list protected by a


(commons-pool) 01/02: Fix indentation, longer line

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch POOL_2_X
in repository https://gitbox.apache.org/repos/asf/commons-pool.git

commit 79053f239135de7b04d796a2c90bad7bfefd32c6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 29 13:03:38 2025 +0000

    Fix indentation, longer line
---
 src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java b/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java
index 158fa7b9..e6d05f96 100644
--- a/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java
+++ b/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java
@@ -1412,9 +1412,8 @@ final class LinkedBlockingDeque<E> extends AbstractQueue<E>
             p.next = n;
             n.prev = p;
             x.item = null;
-            // Don't mess with x's links.  They may still be in use by
-            // an iterator.
-        --count;
+            // Don't mess with x's links.  They may still be in use by an iterator.
+            --count;
             notFull.signal();
         }
     }