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-dbcp.git


The following commit(s) were added to refs/heads/master by this push:
     new 65fe477e Remove old code comments
65fe477e is described below

commit 65fe477e09dd1d212533be638c4d8379c21de894
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Nov 4 15:54:22 2024 -0500

    Remove old code comments
---
 src/main/java/org/apache/commons/dbcp2/Utils.java | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/main/java/org/apache/commons/dbcp2/Utils.java 
b/src/main/java/org/apache/commons/dbcp2/Utils.java
index 7e3e7c7a..16f23a2f 100644
--- a/src/main/java/org/apache/commons/dbcp2/Utils.java
+++ b/src/main/java/org/apache/commons/dbcp2/Utils.java
@@ -94,13 +94,6 @@ public final class Utils {
      * @since 2.13.0
      */
     static void checkSqlCodes(final Collection<String> codes1, final 
Collection<String> codes2) {
-//        if (codes1 != null && codes2 != null) {
-//            for (String code : codes1) {
-//                if (codes2.contains(code)) {
-//                    throw new IllegalArgumentException(code + " cannot be in 
both disconnectionSqlCodes and disconnectionIgnoreSqlCodes.");
-//                }
-//            }
-//        }
         if (codes1 != null && codes2 != null) {
             final Set<String> test = new HashSet<>(codes1);
             test.retainAll(codes2);

Reply via email to