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

pcristof pushed a commit to branch OPENJPA-2940
in repository https://gitbox.apache.org/repos/asf/openjpa.git

commit 9f00cdef540ccf0e8159f47f87a95a8d5f7cefbd
Author: Maxim Solodovnik <solo...@apache.org>
AuthorDate: Thu Jun 19 09:41:04 2025 +0700

    Code clean-up
---
 .../main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java
 
b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java
index 07301ec3d..51cfa8d04 100644
--- 
a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java
+++ 
b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java
@@ -188,7 +188,7 @@ extends SimpleDriverDataSource implements Configurable, 
Closeable {
 
         // set some default properties for DBCP
         String maxActiveKey = hasKey(dbcpProps, "maxActive");
-        if (hasKey(dbcpProps, "maxActive") == null) {
+        if (maxActiveKey == null) {
             dbcpProps.setProperty("maxActive", "10");
             maxActiveKey = "maxActive";
         }

Reply via email to