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 2024/07/09 14:16:14 UTC
(commons-dbcp) 02/02: Use final
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
commit 52c66aade7aef5fa257d0fe139af215976d3607f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jul 9 10:16:03 2024 -0400
Use final
---
.../java/org/apache/commons/dbcp2/datasources/SharedPoolDataSource.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/dbcp2/datasources/SharedPoolDataSource.java b/src/main/java/org/apache/commons/dbcp2/datasources/SharedPoolDataSource.java
index fd596d51..54e8b8a0 100644
--- a/src/main/java/org/apache/commons/dbcp2/datasources/SharedPoolDataSource.java
+++ b/src/main/java/org/apache/commons/dbcp2/datasources/SharedPoolDataSource.java
@@ -156,7 +156,7 @@ public class SharedPoolDataSource extends InstanceKeyDataSource {
private KeyedObjectPool<UserPassKey, PooledConnectionAndInfo> readObjectImpl() throws IOException, ClassNotFoundException {
try {
return ((SharedPoolDataSource) new SharedPoolDataSourceFactory().getObjectInstance(getReference(), null, null, null)).pool;
- } catch (NamingException e) {
+ } catch (final NamingException e) {
throw new IOException("NamingException: " + e);
}
}