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 2018/06/13 17:28:39 UTC
[17/50] [abbrv] commons-dbcp git commit: Add missing Javadoc.
Add missing Javadoc.
Project: http://git-wip-us.apache.org/repos/asf/commons-dbcp/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-dbcp/commit/b572ad1e
Tree: http://git-wip-us.apache.org/repos/asf/commons-dbcp/tree/b572ad1e
Diff: http://git-wip-us.apache.org/repos/asf/commons-dbcp/diff/b572ad1e
Branch: refs/heads/release
Commit: b572ad1e3f956edc958b0142c0e6d296a9d24c6b
Parents: 9a61dc0
Author: Gary Gregory <ga...@gmail.com>
Authored: Mon Jun 11 17:55:52 2018 -0600
Committer: Gary Gregory <ga...@gmail.com>
Committed: Mon Jun 11 17:55:52 2018 -0600
----------------------------------------------------------------------
.../apache/commons/dbcp2/DelegatingConnection.java | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-dbcp/blob/b572ad1e/src/main/java/org/apache/commons/dbcp2/DelegatingConnection.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/dbcp2/DelegatingConnection.java b/src/main/java/org/apache/commons/dbcp2/DelegatingConnection.java
index 6259bfc..606ba94 100644
--- a/src/main/java/org/apache/commons/dbcp2/DelegatingConnection.java
+++ b/src/main/java/org/apache/commons/dbcp2/DelegatingConnection.java
@@ -172,6 +172,8 @@ public class DelegatingConnection<C extends Connection> extends AbandonedTrace
* This method is useful when you may have nested
* {@code DelegatingConnection}s, and you want to make
* sure to obtain a "genuine" {@link Connection}.
+ *
+ * @return innermost delegate.
*/
public Connection getInnermostDelegate() {
return getInnermostDelegateInternal();
@@ -182,6 +184,8 @@ public class DelegatingConnection<C extends Connection> extends AbandonedTrace
* Although this method is public, it is part of the internal API and should
* not be used by clients. The signature of this method may change at any
* time including in ways that break backwards compatibility.
+ *
+ * @return innermost delegate.
*/
public final Connection getInnermostDelegateInternal() {
Connection c = connection;
@@ -194,9 +198,14 @@ public class DelegatingConnection<C extends Connection> extends AbandonedTrace
return c;
}
- /** Sets my delegate. */
- public void setDelegate(final C c) {
- connection = c;
+ /**
+ * Sets my delegate.
+ *
+ * @param connection
+ * my delegate.
+ */
+ public void setDelegate(final C connection) {
+ this.connection = connection;
}
/**