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 2021/07/31 14:17:09 UTC

[commons-dbcp] branch master updated: Test inner classes can be static.

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 464afa3  Test inner classes can be static.
464afa3 is described below

commit 464afa386feee4efe4e9687a651ae49f01ec8dd7
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Jul 31 10:17:05 2021 -0400

    Test inner classes can be static.
---
 .../java/org/apache/commons/dbcp2/managed/TestManagedConnection.java    | 2 +-
 .../java/org/apache/commons/dbcp2/managed/TestTransactionContext.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/dbcp2/managed/TestManagedConnection.java b/src/test/java/org/apache/commons/dbcp2/managed/TestManagedConnection.java
index 52b5b73..f53b925 100644
--- a/src/test/java/org/apache/commons/dbcp2/managed/TestManagedConnection.java
+++ b/src/test/java/org/apache/commons/dbcp2/managed/TestManagedConnection.java
@@ -159,7 +159,7 @@ public class TestManagedConnection {
     /**
      * Transaction that always fails enlistResource.
      */
-    private class UncooperativeTransaction
+    private static class UncooperativeTransaction
         implements Transaction {
 
         private final Transaction wrappedTransaction;
diff --git a/src/test/java/org/apache/commons/dbcp2/managed/TestTransactionContext.java b/src/test/java/org/apache/commons/dbcp2/managed/TestTransactionContext.java
index 702e9e9..e977563 100644
--- a/src/test/java/org/apache/commons/dbcp2/managed/TestTransactionContext.java
+++ b/src/test/java/org/apache/commons/dbcp2/managed/TestTransactionContext.java
@@ -56,7 +56,7 @@ public class TestTransactionContext {
     /**
      * Transaction that always fails enlistResource.
      */
-    private class UncooperativeTransaction extends TransactionImpl {
+    private static class UncooperativeTransaction extends TransactionImpl {
         public UncooperativeTransaction() {
             super(null, null);
         }