Add missing '@Deprecated' annotations
authorGary Gregory <garydgregory@gmail.com>
Wed, 14 Nov 2018 02:34:48 +0000 (19:34 -0700)
committerGary Gregory <garydgregory@gmail.com>
Wed, 14 Nov 2018 02:34:48 +0000 (19:34 -0700)
src/main/java/org/apache/commons/dbcp2/PoolableConnectionFactory.java

index 44dab43..604c049 100644 (file)
@@ -212,6 +212,7 @@ public class PoolableConnectionFactory implements PooledObjectFactory<PoolableCo
     /**
      * @deprecated Use {@link #isAutoCommitOnReturn()}.
      */
+    @Deprecated
     public boolean isEnableAutoCommitOnReturn() {
         return autoCommitOnReturn;
     }
@@ -230,6 +231,7 @@ public class PoolableConnectionFactory implements PooledObjectFactory<PoolableCo
     /**
      * @deprecated Use {@link setAutoCommitOnReturn(boolean)}.
      */
+    @Deprecated
     public void setEnableAutoCommitOnReturn(final boolean autoCommitOnReturn) {
         this.autoCommitOnReturn = autoCommitOnReturn;
     }