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 2023/03/05 13:25:27 UTC

[commons-pool] 03/07: Use final

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

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

commit 1003a9f9a35cf8702b1cc2451c4f3bc5bc55b090
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Mar 5 08:10:45 2023 -0500

    Use final
---
 src/main/java/org/apache/commons/pool2/PooledObject.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/pool2/PooledObject.java b/src/main/java/org/apache/commons/pool2/PooledObject.java
index fffcbc5b..6403d33b 100644
--- a/src/main/java/org/apache/commons/pool2/PooledObject.java
+++ b/src/main/java/org/apache/commons/pool2/PooledObject.java
@@ -40,7 +40,7 @@ public interface PooledObject<T> extends Comparable<PooledObject<T>> {
      * @return whether the given PooledObject is null <em>or</em> contains a null.
      * @since 2.12.0
      */
-    static boolean isNull(PooledObject<?> pooledObject) {
+    static boolean isNull(final PooledObject<?> pooledObject) {
         return pooledObject == null || pooledObject.getObject() == null;
     }