Don't use deprecated ctor. Project: http://git-wip-us.apache.org/repos/asf/commons-dbcp/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-dbcp/commit/628e21fc Tree: http://git-wip-us.apache.org/repos/asf/commons-dbcp/tree/628e21fc Diff: http://git-wip-us.apache.org/repos/asf/commons-dbcp/diff/628e21fc
Branch: refs/heads/release Commit: 628e21fcc75ddf52ff2ad5c67ee7b4840b6357df Parents: 95b6b99 Author: Gary Gregory <garydgreg...@gmail.com> Authored: Mon Jun 11 17:57:40 2018 -0600 Committer: Gary Gregory <garydgreg...@gmail.com> Committed: Mon Jun 11 17:57:40 2018 -0600 ---------------------------------------------------------------------- .../apache/commons/dbcp2/datasources/CPDSConnectionFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-dbcp/blob/628e21fc/src/main/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java b/src/main/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java index 08f75e5..d6aa18a 100644 --- a/src/main/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java +++ b/src/main/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java @@ -157,7 +157,7 @@ class CPDSConnectionFactory // should we add this object as a listener or the pool. // consider the validateObject method in decision pc.addConnectionEventListener(this); - pci = new PooledConnectionAndInfo(pc, userName, Utils.toString(userPassword)); + pci = new PooledConnectionAndInfo(pc, userName, userPassword); pcMap.put(pc, pci); } catch (final SQLException e) { throw new RuntimeException(e.getMessage());