Author: ggregory Date: Mon Feb 8 21:58:41 2016 New Revision: 1729277 URL: http://svn.apache.org/viewvc?rev=1729277&view=rev Log: Add final modifier to method parameters.
Modified: commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/BasicDataSource.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/BasicDataSourceFactory.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DataSourceConnectionFactory.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DelegatingCallableStatement.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DelegatingConnection.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DelegatingDatabaseMetaData.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DelegatingPreparedStatement.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DelegatingResultSet.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DelegatingStatement.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DriverConnectionFactory.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DriverManagerConnectionFactory.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/LifetimeExceededException.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/PStmtKey.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/PoolableCallableStatement.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/PoolableConnection.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/PoolableConnectionFactory.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/PoolablePreparedStatement.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/PoolingConnection.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/PoolingDataSource.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/PoolingDriver.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/SwallowedExceptionLogger.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/Utils.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/cpdsadapter/ConnectionImpl.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/cpdsadapter/DriverAdapterCPDS.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/cpdsadapter/PStmtKeyCPDS.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/cpdsadapter/PooledConnectionImpl.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSourceFactory.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/KeyedCPDSConnectionFactory.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/PerUserPoolDataSource.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/PerUserPoolDataSourceFactory.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/PoolKey.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/PooledConnectionAndInfo.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/SharedPoolDataSource.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/SharedPoolDataSourceFactory.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/UserPassKey.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/managed/BasicManagedDataSource.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/managed/DataSourceXAConnectionFactory.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/managed/LocalXAConnectionFactory.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/managed/ManagedConnection.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/managed/ManagedDataSource.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/managed/PoolableManagedConnection.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/managed/PoolableManagedConnectionFactory.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/managed/TransactionContext.java commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/managed/TransactionRegistry.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/StackMessageLog.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TestAbandonedBasicDataSource.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TestBasicDataSource.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TestBasicDataSourceFactory.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TestConnectionPool.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TestDelegatingStatement.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TestDriverManagerConnectionFactory.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TestJndi.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TesterCallableStatement.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TesterClassLoader.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TesterConnection.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TesterDatabaseMetaData.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TesterDriver.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TesterPreparedStatement.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TesterResultSet.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TesterStatement.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/TesterUtils.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/cpdsadapter/TestDriverAdapterCPDS.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/datasources/ConnectionPoolDataSourceProxy.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/datasources/PooledConnectionProxy.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/datasources/TestInstanceKeyDataSource.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/datasources/TestSharedPoolDataSource.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/managed/TestDataSourceXAConnectionFactory.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/managed/TestManagedConnection.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/managed/TestManagedDataSourceInTx.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/managed/TestTransactionContext.java commons/proper/dbcp/trunk/src/test/java/org/apache/commons/dbcp2/managed/TesterBasicXAConnection.java Modified: commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java?rev=1729277&r1=1729276&r2=1729277&view=diff ============================================================================== --- commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java (original) +++ commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java Mon Feb 8 21:58:41 2016 @@ -55,7 +55,7 @@ public class AbandonedTrace implements T * * @param parent AbandonedTrace parent object */ - public AbandonedTrace(AbandonedTrace parent) { + public AbandonedTrace(final AbandonedTrace parent) { init(parent); } @@ -64,7 +64,7 @@ public class AbandonedTrace implements T * * @param parent AbandonedTrace parent object */ - private void init(AbandonedTrace parent) { + private void init(final AbandonedTrace parent) { if (parent != null) { parent.addTrace(this); } @@ -93,7 +93,7 @@ public class AbandonedTrace implements T * * @param time time in ms */ - protected void setLastUsed(long time) { + protected void setLastUsed(final long time) { lastUsed = time; } @@ -103,7 +103,7 @@ public class AbandonedTrace implements T * * @param trace AbandonedTrace object to add */ - protected void addTrace(AbandonedTrace trace) { + protected void addTrace(final AbandonedTrace trace) { synchronized (this.traceList) { this.traceList.add(new WeakReference<>(trace)); } @@ -151,7 +151,7 @@ public class AbandonedTrace implements T * * @param trace AbandonedTrace object to remove */ - protected void removeTrace(AbandonedTrace trace) { + protected void removeTrace(final AbandonedTrace trace) { synchronized(this.traceList) { final Iterator<WeakReference<AbandonedTrace>> iter = traceList.iterator(); while (iter.hasNext()) { Modified: commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/BasicDataSource.java URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/BasicDataSource.java?rev=1729277&r1=1729276&r2=1729277&view=diff ============================================================================== --- commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/BasicDataSource.java (original) +++ commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/BasicDataSource.java Mon Feb 8 21:58:41 2016 @@ -130,7 +130,7 @@ public class BasicDataSource implements * * @param defaultAutoCommit default auto-commit value */ - public void setDefaultAutoCommit(Boolean defaultAutoCommit) { + public void setDefaultAutoCommit(final Boolean defaultAutoCommit) { this.defaultAutoCommit = defaultAutoCommit; } @@ -160,7 +160,7 @@ public class BasicDataSource implements * * @param defaultReadOnly default read-only value */ - public void setDefaultReadOnly(Boolean defaultReadOnly) { + public void setDefaultReadOnly(final Boolean defaultReadOnly) { this.defaultReadOnly = defaultReadOnly; } @@ -194,7 +194,7 @@ public class BasicDataSource implements * state * @see Connection#getTransactionIsolation */ - public void setDefaultTransactionIsolation(int defaultTransactionIsolation) { + public void setDefaultTransactionIsolation(final int defaultTransactionIsolation) { this.defaultTransactionIsolation = defaultTransactionIsolation; } @@ -216,7 +216,7 @@ public class BasicDataSource implements * created from this connection. <code>null</code> means that the driver * default will be used. */ - public void setDefaultQueryTimeout(Integer defaultQueryTimeout) { + public void setDefaultQueryTimeout(final Integer defaultQueryTimeout) { this.defaultQueryTimeout = defaultQueryTimeout; } @@ -246,7 +246,7 @@ public class BasicDataSource implements * * @param defaultCatalog the default catalog */ - public void setDefaultCatalog(String defaultCatalog) { + public void setDefaultCatalog(final String defaultCatalog) { if (defaultCatalog != null && defaultCatalog.trim().length() > 0) { this.defaultCatalog = defaultCatalog; } @@ -276,7 +276,7 @@ public class BasicDataSource implements * * @param cacheState The new value for the state caching flag */ - public void setCacheState(boolean cacheState) { + public void setCacheState(final boolean cacheState) { this.cacheState = cacheState; } @@ -309,7 +309,7 @@ public class BasicDataSource implements * * @param driver */ - public synchronized void setDriver(Driver driver) { + public synchronized void setDriver(final Driver driver) { this.driver = driver; } @@ -342,7 +342,7 @@ public class BasicDataSource implements * * @param driverClassName the class name of the JDBC driver */ - public synchronized void setDriverClassName(String driverClassName) { + public synchronized void setDriverClassName(final String driverClassName) { if (driverClassName != null && driverClassName.trim().length() > 0) { this.driverClassName = driverClassName; } @@ -384,7 +384,7 @@ public class BasicDataSource implements * driver */ public synchronized void setDriverClassLoader( - ClassLoader driverClassLoader) { + final ClassLoader driverClassLoader) { this.driverClassLoader = driverClassLoader; } @@ -413,7 +413,7 @@ public class BasicDataSource implements * @param lifo the new value for the LIFO property * */ - public synchronized void setLifo(boolean lifo) { + public synchronized void setLifo(final boolean lifo) { this.lifo = lifo; if (connectionPool != null) { connectionPool.setLifo(lifo); @@ -446,7 +446,7 @@ public class BasicDataSource implements * @param maxTotal the new value for maxTotal * @see #getMaxTotal() */ - public synchronized void setMaxTotal(int maxTotal) { + public synchronized void setMaxTotal(final int maxTotal) { this.maxTotal = maxTotal; if (connectionPool != null) { connectionPool.setMaxTotal(maxTotal); @@ -485,7 +485,7 @@ public class BasicDataSource implements * @see #getMaxIdle() * @param maxIdle the new value for maxIdle */ - public synchronized void setMaxIdle(int maxIdle) { + public synchronized void setMaxIdle(final int maxIdle) { this.maxIdle = maxIdle; if (connectionPool != null) { connectionPool.setMaxIdle(maxIdle); @@ -524,7 +524,7 @@ public class BasicDataSource implements * @param minIdle the new value for minIdle * @see GenericObjectPool#setMinIdle(int) */ - public synchronized void setMinIdle(int minIdle) { + public synchronized void setMinIdle(final int minIdle) { this.minIdle = minIdle; if (connectionPool != null) { connectionPool.setMinIdle(minIdle); @@ -558,7 +558,7 @@ public class BasicDataSource implements * @param initialSize the number of connections created when the pool * is initialized */ - public synchronized void setInitialSize(int initialSize) { + public synchronized void setInitialSize(final int initialSize) { this.initialSize = initialSize; } @@ -589,7 +589,7 @@ public class BasicDataSource implements * @param maxWaitMillis the new value for MaxWaitMillis * @see #getMaxWaitMillis() */ - public synchronized void setMaxWaitMillis(long maxWaitMillis) { + public synchronized void setMaxWaitMillis(final long maxWaitMillis) { this.maxWaitMillis = maxWaitMillis; if (connectionPool != null) { connectionPool.setMaxWaitMillis(maxWaitMillis); @@ -622,7 +622,7 @@ public class BasicDataSource implements * * @param poolingStatements pooling on or off */ - public synchronized void setPoolPreparedStatements(boolean poolingStatements) { + public synchronized void setPoolPreparedStatements(final boolean poolingStatements) { this.poolPreparedStatements = poolingStatements; } @@ -661,7 +661,7 @@ public class BasicDataSource implements * * @param maxOpenStatements the new maximum number of prepared statements */ - public synchronized void setMaxOpenPreparedStatements(int maxOpenStatements) { + public synchronized void setMaxOpenPreparedStatements(final int maxOpenStatements) { this.maxOpenPreparedStatements = maxOpenStatements; } @@ -692,7 +692,7 @@ public class BasicDataSource implements * * @param testOnCreate new value for testOnCreate property */ - public synchronized void setTestOnCreate(boolean testOnCreate) { + public synchronized void setTestOnCreate(final boolean testOnCreate) { this.testOnCreate = testOnCreate; if (connectionPool != null) { connectionPool.setTestOnCreate(testOnCreate); @@ -726,7 +726,7 @@ public class BasicDataSource implements * * @param testOnBorrow new value for testOnBorrow property */ - public synchronized void setTestOnBorrow(boolean testOnBorrow) { + public synchronized void setTestOnBorrow(final boolean testOnBorrow) { this.testOnBorrow = testOnBorrow; if (connectionPool != null) { connectionPool.setTestOnBorrow(testOnBorrow); @@ -757,7 +757,7 @@ public class BasicDataSource implements * * @param testOnReturn new value for testOnReturn property */ - public synchronized void setTestOnReturn(boolean testOnReturn) { + public synchronized void setTestOnReturn(final boolean testOnReturn) { this.testOnReturn = testOnReturn; if (connectionPool != null) { connectionPool.setTestOnReturn(testOnReturn); @@ -790,7 +790,7 @@ public class BasicDataSource implements * @param timeBetweenEvictionRunsMillis the new time between evictor runs * @see #timeBetweenEvictionRunsMillis */ - public synchronized void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis) { + public synchronized void setTimeBetweenEvictionRunsMillis(final long timeBetweenEvictionRunsMillis) { this.timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis; if (connectionPool != null) { connectionPool.setTimeBetweenEvictionRunsMillis(timeBetweenEvictionRunsMillis); @@ -823,7 +823,7 @@ public class BasicDataSource implements * value * @see #numTestsPerEvictionRun */ - public synchronized void setNumTestsPerEvictionRun(int numTestsPerEvictionRun) { + public synchronized void setNumTestsPerEvictionRun(final int numTestsPerEvictionRun) { this.numTestsPerEvictionRun = numTestsPerEvictionRun; if (connectionPool != null) { connectionPool.setNumTestsPerEvictionRun(numTestsPerEvictionRun); @@ -855,7 +855,7 @@ public class BasicDataSource implements * may sit idle in the pool * @see #minEvictableIdleTimeMillis */ - public synchronized void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis) { + public synchronized void setMinEvictableIdleTimeMillis(final long minEvictableIdleTimeMillis) { this.minEvictableIdleTimeMillis = minEvictableIdleTimeMillis; if (connectionPool != null) { connectionPool.setMinEvictableIdleTimeMillis(minEvictableIdleTimeMillis); @@ -882,7 +882,7 @@ public class BasicDataSource implements * assuming there are minIdle idle connections in the pool. * @see #getSoftMinEvictableIdleTimeMillis */ - public synchronized void setSoftMinEvictableIdleTimeMillis(long softMinEvictableIdleTimeMillis) { + public synchronized void setSoftMinEvictableIdleTimeMillis(final long softMinEvictableIdleTimeMillis) { this.softMinEvictableIdleTimeMillis = softMinEvictableIdleTimeMillis; if (connectionPool != null) { connectionPool.setSoftMinEvictableIdleTimeMillis(softMinEvictableIdleTimeMillis); @@ -930,7 +930,7 @@ public class BasicDataSource implements * EvictionPolicy implementation */ public synchronized void setEvictionPolicyClassName( - String evictionPolicyClassName) { + final String evictionPolicyClassName) { if (connectionPool != null) { connectionPool.setEvictionPolicyClassName(evictionPolicyClassName); } @@ -962,7 +962,7 @@ public class BasicDataSource implements * * @param testWhileIdle new value for testWhileIdle property */ - public synchronized void setTestWhileIdle(boolean testWhileIdle) { + public synchronized void setTestWhileIdle(final boolean testWhileIdle) { this.testWhileIdle = testWhileIdle; if (connectionPool != null) { connectionPool.setTestWhileIdle(testWhileIdle); @@ -1028,7 +1028,7 @@ public class BasicDataSource implements * * @param password new value for the password */ - public void setPassword(String password) { + public void setPassword(final String password) { this.password = password; } @@ -1059,7 +1059,7 @@ public class BasicDataSource implements * * @param url the new value for the JDBC connection url */ - public synchronized void setUrl(String url) { + public synchronized void setUrl(final String url) { this.url = url; } @@ -1090,7 +1090,7 @@ public class BasicDataSource implements * * @param username the new value for the JDBC connection username */ - public void setUsername(String username) { + public void setUsername(final String username) { this.username = username; } @@ -1125,7 +1125,7 @@ public class BasicDataSource implements * * @param validationQuery the new value for the validation query */ - public void setValidationQuery(String validationQuery) { + public void setValidationQuery(final String validationQuery) { if (validationQuery != null && validationQuery.trim().length() > 0) { this.validationQuery = validationQuery; } else { @@ -1161,7 +1161,7 @@ public class BasicDataSource implements * * @param timeout new validation query timeout value in seconds */ - public void setValidationQueryTimeout(int timeout) { + public void setValidationQueryTimeout(final int timeout) { this.validationQueryTimeout = timeout; } @@ -1212,7 +1212,7 @@ public class BasicDataSource implements * @param connectionInitSqls Collection of SQL statements to execute * on connection creation */ - public void setConnectionInitSqls(Collection<String> connectionInitSqls) { + public void setConnectionInitSqls(final Collection<String> connectionInitSqls) { if (connectionInitSqls != null && connectionInitSqls.size() > 0) { ArrayList<String> newVal = null; for (final String s : connectionInitSqls) { @@ -1258,7 +1258,7 @@ public class BasicDataSource implements * * @param allow Access to the underlying connection is granted when true. */ - public synchronized void setAccessToUnderlyingConnectionAllowed(boolean allow) { + public synchronized void setAccessToUnderlyingConnectionAllowed(final boolean allow) { this.accessToUnderlyingConnectionAllowed = allow; } @@ -1297,7 +1297,7 @@ public class BasicDataSource implements * following methods is invoked: <code>getConnection, setLogwriter, * setLoginTimeout, getLoginTimeout, getLogWriter.</code></p> */ - public void setMaxConnLifetimeMillis(long maxConnLifetimeMillis) { + public void setMaxConnLifetimeMillis(final long maxConnLifetimeMillis) { this.maxConnLifetimeMillis = maxConnLifetimeMillis; } @@ -1307,7 +1307,7 @@ public class BasicDataSource implements * pool closes connections due to maximum lifetime exceeded. Set this property * to false to suppress log messages when connections expire. */ - public void setLogExpiredConnections(boolean logExpiredConnections) { + public void setLogExpiredConnections(final boolean logExpiredConnections) { this.logExpiredConnections = logExpiredConnections; } @@ -1328,7 +1328,7 @@ public class BasicDataSource implements * component registers this DataSource with JMX and this name is valid this * name will be used in preference to any specified by the other component. */ - public void setJmxName(String jmxName) { + public void setJmxName(final String jmxName) { this.jmxName = jmxName; } @@ -1353,7 +1353,7 @@ public class BasicDataSource implements * if the auto commit setting is {@code false} when the connection * is returned. It is <code>true</code> by default. */ - public void setEnableAutoCommitOnReturn(boolean enableAutoCommitOnReturn) { + public void setEnableAutoCommitOnReturn(final boolean enableAutoCommitOnReturn) { this.enableAutoCommitOnReturn = enableAutoCommitOnReturn; } @@ -1373,7 +1373,7 @@ public class BasicDataSource implements * is returned to the pool if auto commit is not enabled and the connection * is not read only. */ - public void setRollbackOnReturn(boolean rollbackOnReturn) { + public void setRollbackOnReturn(final boolean rollbackOnReturn) { this.rollbackOnReturn = rollbackOnReturn; } @@ -1426,7 +1426,7 @@ public class BasicDataSource implements * @param disconnectionSqlCodes SQL_STATE codes considered to signal fatal conditions * @since 2.1 */ - public void setDisconnectionSqlCodes(Collection<String> disconnectionSqlCodes) { + public void setDisconnectionSqlCodes(final Collection<String> disconnectionSqlCodes) { if (disconnectionSqlCodes != null && disconnectionSqlCodes.size() > 0) { HashSet<String> newVal = null; for (final String s : disconnectionSqlCodes) { @@ -1465,7 +1465,7 @@ public class BasicDataSource implements * fast fail validation * @since 2.1 */ - public void setFastFailValidation(boolean fastFailValidation) { + public void setFastFailValidation(final boolean fastFailValidation) { this.fastFailValidation = fastFailValidation; } @@ -1546,7 +1546,7 @@ public class BasicDataSource implements * @return nothing - always throws UnsupportedOperationException */ @Override - public Connection getConnection(String user, String pass) throws SQLException { + public Connection getConnection(final String user, final String pass) throws SQLException { // This method isn't supported by the PoolingDataSource returned by // the createDataSource throw new UnsupportedOperationException("Not supported by BasicDataSource"); @@ -1604,7 +1604,7 @@ public class BasicDataSource implements * @throws SQLException if a database access error occurs */ @Override - public void setLoginTimeout(int loginTimeout) throws SQLException { + public void setLoginTimeout(final int loginTimeout) throws SQLException { // This method isn't supported by the PoolingDataSource returned by // the createDataSource throw new UnsupportedOperationException("Not supported by BasicDataSource"); @@ -1621,7 +1621,7 @@ public class BasicDataSource implements * @throws SQLException if a database access error occurs */ @Override - public void setLogWriter(PrintWriter logWriter) throws SQLException { + public void setLogWriter(final PrintWriter logWriter) throws SQLException { createDataSource().setLogWriter(logWriter); this.logWriter = logWriter; } @@ -1661,7 +1661,7 @@ public class BasicDataSource implements * @see #getRemoveAbandonedOnMaintenance() */ public void setRemoveAbandonedOnMaintenance( - boolean removeAbandonedOnMaintenance) { + final boolean removeAbandonedOnMaintenance) { if (abandonedConfig == null) { abandonedConfig = new AbandonedConfig(); } @@ -1694,7 +1694,7 @@ public class BasicDataSource implements * removed when connections are borrowed from the pool. * @see #getRemoveAbandonedOnBorrow() */ - public void setRemoveAbandonedOnBorrow(boolean removeAbandonedOnBorrow) { + public void setRemoveAbandonedOnBorrow(final boolean removeAbandonedOnBorrow) { if (abandonedConfig == null) { abandonedConfig = new AbandonedConfig(); } @@ -1739,7 +1739,7 @@ public class BasicDataSource implements * @see #getRemoveAbandonedOnBorrow() * @see #getRemoveAbandonedOnMaintenance() */ - public void setRemoveAbandonedTimeout(int removeAbandonedTimeout) { + public void setRemoveAbandonedTimeout(final int removeAbandonedTimeout) { if (abandonedConfig == null) { abandonedConfig = new AbandonedConfig(); } @@ -1767,7 +1767,7 @@ public class BasicDataSource implements /** * @param logAbandoned new logAbandoned property value */ - public void setLogAbandoned(boolean logAbandoned) { + public void setLogAbandoned(final boolean logAbandoned) { if (abandonedConfig == null) { abandonedConfig = new AbandonedConfig(); } @@ -1791,7 +1791,7 @@ public class BasicDataSource implements * * @param logWriter The new log writer */ - public void setAbandonedLogWriter(PrintWriter logWriter) { + public void setAbandonedLogWriter(final PrintWriter logWriter) { if (abandonedConfig == null) { abandonedConfig = new AbandonedConfig(); } @@ -1824,7 +1824,7 @@ public class BasicDataSource implements * the recording of a stack trace on every use * of a pooled connection */ - public void setAbandonedUsageTracking(boolean usageTracking) { + public void setAbandonedUsageTracking(final boolean usageTracking) { if (abandonedConfig == null) { abandonedConfig = new AbandonedConfig(); } @@ -1843,7 +1843,7 @@ public class BasicDataSource implements * @param name Name of the custom connection property * @param value Value of the custom connection property */ - public void addConnectionProperty(String name, String value) { + public void addConnectionProperty(final String name, final String value) { connectionProperties.put(name, value); } @@ -1853,7 +1853,7 @@ public class BasicDataSource implements * @param name Name of the custom connection property to remove * @see #addConnectionProperty(String, String) */ - public void removeConnectionProperty(String name) { + public void removeConnectionProperty(final String name) { connectionProperties.remove(name); } @@ -1868,7 +1868,7 @@ public class BasicDataSource implements * @param connectionProperties the connection properties used to * create new connections */ - public void setConnectionProperties(String connectionProperties) { + public void setConnectionProperties(final String connectionProperties) { if (connectionProperties == null) { throw new NullPointerException("connectionProperties is null"); } @@ -1946,12 +1946,12 @@ public class BasicDataSource implements } @Override - public boolean isWrapperFor(Class<?> iface) throws SQLException { + public boolean isWrapperFor(final Class<?> iface) throws SQLException { return false; } @Override - public <T> T unwrap(Class<T> iface) throws SQLException { + public <T> T unwrap(final Class<T> iface) throws SQLException { throw new SQLException("BasicDataSource is not a wrapper."); } @@ -1968,7 +1968,7 @@ public class BasicDataSource implements * if invalidating the connection failed. * @since 2.1 */ - public void invalidateConnection(Connection connection) throws IllegalStateException { + public void invalidateConnection(final Connection connection) throws IllegalStateException { if (connection == null) { return; } @@ -2185,7 +2185,7 @@ public class BasicDataSource implements * to a positive value causes {@link GenericObjectPool}'s eviction timer * to be started. */ - protected void createConnectionPool(PoolableConnectionFactory factory) { + protected void createConnectionPool(final PoolableConnectionFactory factory) { // Create an object pool to contain our active connections final GenericObjectPoolConfig config = new GenericObjectPoolConfig(); updateJmxName(config); @@ -2260,7 +2260,7 @@ public class BasicDataSource implements * @throws SQLException if an error occurs creating the PoolableConnectionFactory */ protected PoolableConnectionFactory createPoolableConnectionFactory( - ConnectionFactory driverConnectionFactory) throws SQLException { + final ConnectionFactory driverConnectionFactory) throws SQLException { PoolableConnectionFactory connectionFactory = null; try { connectionFactory = new PoolableConnectionFactory(driverConnectionFactory, registeredJmxName); @@ -2290,7 +2290,7 @@ public class BasicDataSource implements } protected static void validateConnectionFactory( - PoolableConnectionFactory connectionFactory) throws Exception { + final PoolableConnectionFactory connectionFactory) throws Exception { PoolableConnection conn = null; PooledObject<PoolableConnection> p = null; try { @@ -2307,7 +2307,7 @@ public class BasicDataSource implements } } - protected void log(String message) { + protected void log(final String message) { if (logWriter != null) { logWriter.println(message); } @@ -2347,7 +2347,7 @@ public class BasicDataSource implements } @Override - public ObjectName preRegister(MBeanServer server, ObjectName name) { + public ObjectName preRegister(final MBeanServer server, final ObjectName name) { final String requestedName = getJmxName(); if (requestedName != null) { try { @@ -2364,7 +2364,7 @@ public class BasicDataSource implements } @Override - public void postRegister(Boolean registrationDone) { + public void postRegister(final Boolean registrationDone) { // NO-OP } @@ -2378,7 +2378,7 @@ public class BasicDataSource implements // NO-OP } - private void updateJmxName(GenericObjectPoolConfig config) { + private void updateJmxName(final GenericObjectPoolConfig config) { if (registeredJmxName == null) { return; } Modified: commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/BasicDataSourceFactory.java URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/BasicDataSourceFactory.java?rev=1729277&r1=1729276&r2=1729277&view=diff ============================================================================== --- commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/BasicDataSourceFactory.java (original) +++ commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/BasicDataSourceFactory.java Mon Feb 8 21:58:41 2016 @@ -240,7 +240,7 @@ public class BasicDataSourceFactory impl * @exception Exception if an exception occurs creating the instance */ @Override - public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) + public Object getObjectInstance(final Object obj, final Name name, final Context nameCtx, final Hashtable<?,?> environment) throws Exception { // We only know how to deal with <code>javax.naming.Reference</code>s @@ -285,8 +285,8 @@ public class BasicDataSourceFactory impl * @param warnings container for warning messages * @param infoMessages container for info messages */ - private void validatePropertyNames(Reference ref, Name name, List<String> warnings, - List<String> infoMessages) { + private void validatePropertyNames(final Reference ref, final Name name, final List<String> warnings, + final List<String> infoMessages) { final List<String> allPropsAsList = Arrays.asList(ALL_PROPERTIES); final String nameString = name != null ? "Name = " + name.toString() + " " : ""; if (NUPROP_WARNTEXT!=null && !NUPROP_WARNTEXT.keySet().isEmpty()) { @@ -335,7 +335,7 @@ public class BasicDataSourceFactory impl * @param properties the datasource configuration properties * @throws Exception if an error occurs creating the data source */ - public static BasicDataSource createDataSource(Properties properties) throws Exception { + public static BasicDataSource createDataSource(final Properties properties) throws Exception { final BasicDataSource dataSource = new BasicDataSource(); String value = null; @@ -606,7 +606,7 @@ public class BasicDataSourceFactory impl * @return Properties * @throws Exception */ - private static Properties getProperties(String propText) throws Exception { + private static Properties getProperties(final String propText) throws Exception { final Properties p = new Properties(); if (propText != null) { p.load(new ByteArrayInputStream( @@ -621,7 +621,7 @@ public class BasicDataSourceFactory impl * @param delimiter character used to separate values in the list * @return String Collection of values */ - private static Collection<String> parseList(String value, char delimiter) { + private static Collection<String> parseList(final String value, final char delimiter) { final StringTokenizer tokenizer = new StringTokenizer(value, Character.toString(delimiter)); final Collection<String> tokens = new ArrayList<>(tokenizer.countTokens()); while (tokenizer.hasMoreTokens()) { Modified: commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DataSourceConnectionFactory.java URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DataSourceConnectionFactory.java?rev=1729277&r1=1729276&r2=1729277&view=diff ============================================================================== --- commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DataSourceConnectionFactory.java (original) +++ commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DataSourceConnectionFactory.java Mon Feb 8 21:58:41 2016 @@ -28,11 +28,11 @@ import javax.sql.DataSource; * @since 2.0 */ public class DataSourceConnectionFactory implements ConnectionFactory { - public DataSourceConnectionFactory(DataSource source) { + public DataSourceConnectionFactory(final DataSource source) { this(source,null,null); } - public DataSourceConnectionFactory(DataSource source, String uname, String passwd) { + public DataSourceConnectionFactory(final DataSource source, final String uname, final String passwd) { _source = source; _uname = uname; _passwd = passwd; Modified: commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DelegatingCallableStatement.java URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DelegatingCallableStatement.java?rev=1729277&r1=1729276&r2=1729277&view=diff ============================================================================== --- commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DelegatingCallableStatement.java (original) +++ commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/DelegatingCallableStatement.java Mon Feb 8 21:58:41 2016 @@ -65,17 +65,17 @@ public class DelegatingCallableStatement * @param c the {@link DelegatingConnection} that created this statement * @param s the {@link CallableStatement} to delegate all calls to */ - public DelegatingCallableStatement(DelegatingConnection<?> c, - CallableStatement s) { + public DelegatingCallableStatement(final DelegatingConnection<?> c, + final CallableStatement s) { super(c, s); } @Override - public void registerOutParameter(int parameterIndex, int sqlType) throws SQLException + public void registerOutParameter(final int parameterIndex, final int sqlType) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).registerOutParameter( parameterIndex, sqlType); } catch (final SQLException e) { handleException(e); } } @Override - public void registerOutParameter(int parameterIndex, int sqlType, int scale) throws SQLException + public void registerOutParameter(final int parameterIndex, final int sqlType, final int scale) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).registerOutParameter( parameterIndex, sqlType, scale); } catch (final SQLException e) { handleException(e); } } @Override @@ -83,314 +83,314 @@ public class DelegatingCallableStatement { checkOpen(); try { return ((CallableStatement)getDelegate()).wasNull(); } catch (final SQLException e) { handleException(e); return false; } } @Override - public String getString(int parameterIndex) throws SQLException + public String getString(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getString( parameterIndex); } catch (final SQLException e) { handleException(e); return null; } } @Override - public boolean getBoolean(int parameterIndex) throws SQLException + public boolean getBoolean(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getBoolean( parameterIndex); } catch (final SQLException e) { handleException(e); return false; } } @Override - public byte getByte(int parameterIndex) throws SQLException + public byte getByte(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getByte( parameterIndex); } catch (final SQLException e) { handleException(e); return 0; } } @Override - public short getShort(int parameterIndex) throws SQLException + public short getShort(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getShort( parameterIndex); } catch (final SQLException e) { handleException(e); return 0; } } @Override - public int getInt(int parameterIndex) throws SQLException + public int getInt(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getInt( parameterIndex); } catch (final SQLException e) { handleException(e); return 0; } } @Override - public long getLong(int parameterIndex) throws SQLException + public long getLong(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getLong( parameterIndex); } catch (final SQLException e) { handleException(e); return 0; } } @Override - public float getFloat(int parameterIndex) throws SQLException + public float getFloat(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getFloat( parameterIndex); } catch (final SQLException e) { handleException(e); return 0; } } @Override - public double getDouble(int parameterIndex) throws SQLException + public double getDouble(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getDouble( parameterIndex); } catch (final SQLException e) { handleException(e); return 0; } } /** @deprecated Use {@link #getBigDecimal(int)} or {@link #getBigDecimal(String)} */ @Override @Deprecated - public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException + public BigDecimal getBigDecimal(final int parameterIndex, final int scale) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getBigDecimal( parameterIndex, scale); } catch (final SQLException e) { handleException(e); return null; } } @Override - public byte[] getBytes(int parameterIndex) throws SQLException + public byte[] getBytes(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getBytes( parameterIndex); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Date getDate(int parameterIndex) throws SQLException + public Date getDate(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getDate( parameterIndex); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Time getTime(int parameterIndex) throws SQLException + public Time getTime(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getTime( parameterIndex); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Timestamp getTimestamp(int parameterIndex) throws SQLException + public Timestamp getTimestamp(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getTimestamp( parameterIndex); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Object getObject(int parameterIndex) throws SQLException + public Object getObject(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getObject( parameterIndex); } catch (final SQLException e) { handleException(e); return null; } } @Override - public BigDecimal getBigDecimal(int parameterIndex) throws SQLException + public BigDecimal getBigDecimal(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getBigDecimal( parameterIndex); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Object getObject(int i, Map<String,Class<?>> map) throws SQLException + public Object getObject(final int i, final Map<String,Class<?>> map) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getObject( i, map); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Ref getRef(int i) throws SQLException + public Ref getRef(final int i) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getRef( i); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Blob getBlob(int i) throws SQLException + public Blob getBlob(final int i) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getBlob( i); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Clob getClob(int i) throws SQLException + public Clob getClob(final int i) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getClob( i); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Array getArray(int i) throws SQLException + public Array getArray(final int i) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getArray( i); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Date getDate(int parameterIndex, Calendar cal) throws SQLException + public Date getDate(final int parameterIndex, final Calendar cal) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getDate( parameterIndex, cal); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Time getTime(int parameterIndex, Calendar cal) throws SQLException + public Time getTime(final int parameterIndex, final Calendar cal) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getTime( parameterIndex, cal); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException + public Timestamp getTimestamp(final int parameterIndex, final Calendar cal) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getTimestamp( parameterIndex, cal); } catch (final SQLException e) { handleException(e); return null; } } @Override - public void registerOutParameter(int paramIndex, int sqlType, String typeName) throws SQLException + public void registerOutParameter(final int paramIndex, final int sqlType, final String typeName) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).registerOutParameter( paramIndex, sqlType, typeName); } catch (final SQLException e) { handleException(e); } } @Override - public void registerOutParameter(String parameterName, int sqlType) throws SQLException + public void registerOutParameter(final String parameterName, final int sqlType) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).registerOutParameter(parameterName, sqlType); } catch (final SQLException e) { handleException(e); } } @Override - public void registerOutParameter(String parameterName, int sqlType, int scale) throws SQLException + public void registerOutParameter(final String parameterName, final int sqlType, final int scale) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).registerOutParameter(parameterName, sqlType, scale); } catch (final SQLException e) { handleException(e); } } @Override - public void registerOutParameter(String parameterName, int sqlType, String typeName) throws SQLException + public void registerOutParameter(final String parameterName, final int sqlType, final String typeName) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).registerOutParameter(parameterName, sqlType, typeName); } catch (final SQLException e) { handleException(e); } } @Override - public URL getURL(int parameterIndex) throws SQLException + public URL getURL(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getURL(parameterIndex); } catch (final SQLException e) { handleException(e); return null; } } @Override - public void setURL(String parameterName, URL val) throws SQLException + public void setURL(final String parameterName, final URL val) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setURL(parameterName, val); } catch (final SQLException e) { handleException(e); } } @Override - public void setNull(String parameterName, int sqlType) throws SQLException + public void setNull(final String parameterName, final int sqlType) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setNull(parameterName, sqlType); } catch (final SQLException e) { handleException(e); } } @Override - public void setBoolean(String parameterName, boolean x) throws SQLException + public void setBoolean(final String parameterName, final boolean x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setBoolean(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setByte(String parameterName, byte x) throws SQLException + public void setByte(final String parameterName, final byte x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setByte(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setShort(String parameterName, short x) throws SQLException + public void setShort(final String parameterName, final short x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setShort(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setInt(String parameterName, int x) throws SQLException + public void setInt(final String parameterName, final int x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setInt(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setLong(String parameterName, long x) throws SQLException + public void setLong(final String parameterName, final long x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setLong(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setFloat(String parameterName, float x) throws SQLException + public void setFloat(final String parameterName, final float x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setFloat(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setDouble(String parameterName, double x) throws SQLException + public void setDouble(final String parameterName, final double x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setDouble(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException + public void setBigDecimal(final String parameterName, final BigDecimal x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setBigDecimal(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setString(String parameterName, String x) throws SQLException + public void setString(final String parameterName, final String x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setString(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setBytes(String parameterName, byte [] x) throws SQLException + public void setBytes(final String parameterName, final byte [] x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setBytes(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setDate(String parameterName, Date x) throws SQLException + public void setDate(final String parameterName, final Date x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setDate(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setTime(String parameterName, Time x) throws SQLException + public void setTime(final String parameterName, final Time x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setTime(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setTimestamp(String parameterName, Timestamp x) throws SQLException + public void setTimestamp(final String parameterName, final Timestamp x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setTimestamp(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setAsciiStream(String parameterName, InputStream x, int length) throws SQLException + public void setAsciiStream(final String parameterName, final InputStream x, final int length) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setAsciiStream(parameterName, x, length); } catch (final SQLException e) { handleException(e); } } @Override - public void setBinaryStream(String parameterName, InputStream x, int length) throws SQLException + public void setBinaryStream(final String parameterName, final InputStream x, final int length) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setBinaryStream(parameterName, x, length); } catch (final SQLException e) { handleException(e); } } @Override - public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException + public void setObject(final String parameterName, final Object x, final int targetSqlType, final int scale) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setObject(parameterName, x, targetSqlType, scale); } catch (final SQLException e) { handleException(e); } } @Override - public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException + public void setObject(final String parameterName, final Object x, final int targetSqlType) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setObject(parameterName, x, targetSqlType); } catch (final SQLException e) { handleException(e); } } @Override - public void setObject(String parameterName, Object x) throws SQLException + public void setObject(final String parameterName, final Object x) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setObject(parameterName, x); } catch (final SQLException e) { handleException(e); } } @Override - public void setCharacterStream(String parameterName, Reader reader, int length) throws SQLException + public void setCharacterStream(final String parameterName, final Reader reader, final int length) throws SQLException { checkOpen(); ((CallableStatement)getDelegate()).setCharacterStream(parameterName, reader, length); } @Override - public void setDate(String parameterName, Date x, Calendar cal) throws SQLException + public void setDate(final String parameterName, final Date x, final Calendar cal) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setDate(parameterName, x, cal); } catch (final SQLException e) { handleException(e); } } @Override - public void setTime(String parameterName, Time x, Calendar cal) throws SQLException + public void setTime(final String parameterName, final Time x, final Calendar cal) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setTime(parameterName, x, cal); } catch (final SQLException e) { handleException(e); } } @Override - public void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException + public void setTimestamp(final String parameterName, final Timestamp x, final Calendar cal) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setTimestamp(parameterName, x, cal); } catch (final SQLException e) { handleException(e); } } @Override - public void setNull(String parameterName, int sqlType, String typeName) throws SQLException + public void setNull(final String parameterName, final int sqlType, final String typeName) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setNull(parameterName, sqlType, typeName); } catch (final SQLException e) { handleException(e); } } @Override - public String getString(String parameterName) throws SQLException + public String getString(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getString(parameterName); } catch (final SQLException e) { handleException(e); return null; } } @Override - public boolean getBoolean(String parameterName) throws SQLException + public boolean getBoolean(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getBoolean(parameterName); } catch (final SQLException e) { handleException(e); return false; } } @Override - public byte getByte(String parameterName) throws SQLException + public byte getByte(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getByte(parameterName); } catch (final SQLException e) { handleException(e); return 0; } } @Override - public short getShort(String parameterName) throws SQLException + public short getShort(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getShort(parameterName); } catch (final SQLException e) { handleException(e); return 0; } } @Override - public int getInt(String parameterName) throws SQLException + public int getInt(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getInt(parameterName); } catch (final SQLException e) { handleException(e); return 0; } } @Override - public long getLong(String parameterName) throws SQLException + public long getLong(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getLong(parameterName); } catch (final SQLException e) { handleException(e); return 0; } } @Override - public float getFloat(String parameterName) throws SQLException + public float getFloat(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getFloat(parameterName); } catch (final SQLException e) { handleException(e); return 0; } } @Override - public double getDouble(String parameterName) throws SQLException + public double getDouble(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getDouble(parameterName); } catch (final SQLException e) { handleException(e); return 0; } } @Override - public byte[] getBytes(String parameterName) throws SQLException + public byte[] getBytes(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getBytes(parameterName); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Date getDate(String parameterName) throws SQLException + public Date getDate(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getDate(parameterName); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Time getTime(String parameterName) throws SQLException + public Time getTime(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getTime(parameterName); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Timestamp getTimestamp(String parameterName) throws SQLException + public Timestamp getTimestamp(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getTimestamp(parameterName); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Object getObject(String parameterName) throws SQLException + public Object getObject(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getObject(parameterName); } catch (final SQLException e) { handleException(e); return null; } } @Override - public BigDecimal getBigDecimal(String parameterName) throws SQLException + public BigDecimal getBigDecimal(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getBigDecimal(parameterName); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Object getObject(String parameterName, Map<String,Class<?>> map) throws SQLException + public Object getObject(final String parameterName, final Map<String,Class<?>> map) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getObject(parameterName, map); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Ref getRef(String parameterName) throws SQLException + public Ref getRef(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getRef(parameterName); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Blob getBlob(String parameterName) throws SQLException + public Blob getBlob(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getBlob(parameterName); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Clob getClob(String parameterName) throws SQLException + public Clob getClob(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getClob(parameterName); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Array getArray(String parameterName) throws SQLException + public Array getArray(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getArray(parameterName); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Date getDate(String parameterName, Calendar cal) throws SQLException + public Date getDate(final String parameterName, final Calendar cal) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getDate(parameterName, cal); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Time getTime(String parameterName, Calendar cal) throws SQLException + public Time getTime(final String parameterName, final Calendar cal) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getTime(parameterName, cal); } catch (final SQLException e) { handleException(e); return null; } } @Override - public Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException + public Timestamp getTimestamp(final String parameterName, final Calendar cal) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getTimestamp(parameterName, cal); } catch (final SQLException e) { handleException(e); return null; } } @Override - public URL getURL(String parameterName) throws SQLException + public URL getURL(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getURL(parameterName); } catch (final SQLException e) { handleException(e); return null; } } @Override - public RowId getRowId(int parameterIndex) throws SQLException { + public RowId getRowId(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getRowId(parameterIndex); @@ -402,7 +402,7 @@ public class DelegatingCallableStatement } @Override - public RowId getRowId(String parameterName) throws SQLException { + public RowId getRowId(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getRowId(parameterName); @@ -414,7 +414,7 @@ public class DelegatingCallableStatement } @Override - public void setRowId(String parameterName, RowId value) throws SQLException { + public void setRowId(final String parameterName, final RowId value) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setRowId(parameterName, value); @@ -425,7 +425,7 @@ public class DelegatingCallableStatement } @Override - public void setNString(String parameterName, String value) throws SQLException { + public void setNString(final String parameterName, final String value) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setNString(parameterName, value); @@ -436,7 +436,7 @@ public class DelegatingCallableStatement } @Override - public void setNCharacterStream(String parameterName, Reader reader, long length) throws SQLException { + public void setNCharacterStream(final String parameterName, final Reader reader, final long length) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setNCharacterStream(parameterName, reader, length); @@ -447,7 +447,7 @@ public class DelegatingCallableStatement } @Override - public void setNClob(String parameterName, NClob value) throws SQLException { + public void setNClob(final String parameterName, final NClob value) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setNClob(parameterName, value); @@ -458,7 +458,7 @@ public class DelegatingCallableStatement } @Override - public void setClob(String parameterName, Reader reader, long length) throws SQLException { + public void setClob(final String parameterName, final Reader reader, final long length) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setClob(parameterName, reader, length); @@ -469,7 +469,7 @@ public class DelegatingCallableStatement } @Override - public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException { + public void setBlob(final String parameterName, final InputStream inputStream, final long length) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setBlob(parameterName, inputStream, length); @@ -480,7 +480,7 @@ public class DelegatingCallableStatement } @Override - public void setNClob(String parameterName, Reader reader, long length) throws SQLException { + public void setNClob(final String parameterName, final Reader reader, final long length) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setNClob(parameterName, reader, length); @@ -491,7 +491,7 @@ public class DelegatingCallableStatement } @Override - public NClob getNClob(int parameterIndex) throws SQLException { + public NClob getNClob(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getNClob(parameterIndex); @@ -503,7 +503,7 @@ public class DelegatingCallableStatement } @Override - public NClob getNClob(String parameterName) throws SQLException { + public NClob getNClob(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getNClob(parameterName); @@ -515,7 +515,7 @@ public class DelegatingCallableStatement } @Override - public void setSQLXML(String parameterName, SQLXML value) throws SQLException { + public void setSQLXML(final String parameterName, final SQLXML value) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setSQLXML(parameterName, value); @@ -526,7 +526,7 @@ public class DelegatingCallableStatement } @Override - public SQLXML getSQLXML(int parameterIndex) throws SQLException { + public SQLXML getSQLXML(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getSQLXML(parameterIndex); @@ -538,7 +538,7 @@ public class DelegatingCallableStatement } @Override - public SQLXML getSQLXML(String parameterName) throws SQLException { + public SQLXML getSQLXML(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getSQLXML(parameterName); @@ -550,7 +550,7 @@ public class DelegatingCallableStatement } @Override - public String getNString(int parameterIndex) throws SQLException { + public String getNString(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getNString(parameterIndex); @@ -562,7 +562,7 @@ public class DelegatingCallableStatement } @Override - public String getNString(String parameterName) throws SQLException { + public String getNString(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getNString(parameterName); @@ -574,7 +574,7 @@ public class DelegatingCallableStatement } @Override - public Reader getNCharacterStream(int parameterIndex) throws SQLException { + public Reader getNCharacterStream(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getNCharacterStream(parameterIndex); @@ -586,7 +586,7 @@ public class DelegatingCallableStatement } @Override - public Reader getNCharacterStream(String parameterName) throws SQLException { + public Reader getNCharacterStream(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getNCharacterStream(parameterName); @@ -598,7 +598,7 @@ public class DelegatingCallableStatement } @Override - public Reader getCharacterStream(int parameterIndex) throws SQLException { + public Reader getCharacterStream(final int parameterIndex) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getCharacterStream(parameterIndex); @@ -610,7 +610,7 @@ public class DelegatingCallableStatement } @Override - public Reader getCharacterStream(String parameterName) throws SQLException { + public Reader getCharacterStream(final String parameterName) throws SQLException { checkOpen(); try { return ((CallableStatement)getDelegate()).getCharacterStream(parameterName); @@ -622,7 +622,7 @@ public class DelegatingCallableStatement } @Override - public void setBlob(String parameterName, Blob blob) throws SQLException { + public void setBlob(final String parameterName, final Blob blob) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setBlob(parameterName, blob); @@ -633,7 +633,7 @@ public class DelegatingCallableStatement } @Override - public void setClob(String parameterName, Clob clob) throws SQLException { + public void setClob(final String parameterName, final Clob clob) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setClob(parameterName, clob); @@ -644,7 +644,7 @@ public class DelegatingCallableStatement } @Override - public void setAsciiStream(String parameterName, InputStream inputStream, long length) throws SQLException { + public void setAsciiStream(final String parameterName, final InputStream inputStream, final long length) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setAsciiStream(parameterName, inputStream, length); @@ -655,7 +655,7 @@ public class DelegatingCallableStatement } @Override - public void setBinaryStream(String parameterName, InputStream inputStream, long length) throws SQLException { + public void setBinaryStream(final String parameterName, final InputStream inputStream, final long length) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setBinaryStream(parameterName, inputStream, length); @@ -666,7 +666,7 @@ public class DelegatingCallableStatement } @Override - public void setCharacterStream(String parameterName, Reader reader, long length) throws SQLException { + public void setCharacterStream(final String parameterName, final Reader reader, final long length) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setCharacterStream(parameterName, reader, length); @@ -677,7 +677,7 @@ public class DelegatingCallableStatement } @Override - public void setAsciiStream(String parameterName, InputStream inputStream) throws SQLException { + public void setAsciiStream(final String parameterName, final InputStream inputStream) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setAsciiStream(parameterName, inputStream); @@ -688,7 +688,7 @@ public class DelegatingCallableStatement } @Override - public void setBinaryStream(String parameterName, InputStream inputStream) throws SQLException { + public void setBinaryStream(final String parameterName, final InputStream inputStream) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setBinaryStream(parameterName, inputStream); @@ -699,7 +699,7 @@ public class DelegatingCallableStatement } @Override - public void setCharacterStream(String parameterName, Reader reader) throws SQLException { + public void setCharacterStream(final String parameterName, final Reader reader) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setCharacterStream(parameterName, reader); @@ -710,7 +710,7 @@ public class DelegatingCallableStatement } @Override - public void setNCharacterStream(String parameterName, Reader reader) throws SQLException { + public void setNCharacterStream(final String parameterName, final Reader reader) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setNCharacterStream(parameterName, reader); @@ -721,7 +721,7 @@ public class DelegatingCallableStatement } @Override - public void setClob(String parameterName, Reader reader) throws SQLException { + public void setClob(final String parameterName, final Reader reader) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setClob(parameterName, reader); @@ -732,7 +732,7 @@ public class DelegatingCallableStatement } @Override - public void setBlob(String parameterName, InputStream inputStream) throws SQLException { + public void setBlob(final String parameterName, final InputStream inputStream) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setBlob(parameterName, inputStream); @@ -743,7 +743,7 @@ public class DelegatingCallableStatement } @Override - public void setNClob(String parameterName, Reader reader) throws SQLException { + public void setNClob(final String parameterName, final Reader reader) throws SQLException { checkOpen(); try { ((CallableStatement)getDelegate()).setNClob(parameterName, reader); @@ -754,7 +754,7 @@ public class DelegatingCallableStatement } @Override - public <T> T getObject(int parameterIndex, Class<T> type) + public <T> T getObject(final int parameterIndex, final Class<T> type) throws SQLException { checkOpen(); try { @@ -767,7 +767,7 @@ public class DelegatingCallableStatement } @Override - public <T> T getObject(String parameterName, Class<T> type) + public <T> T getObject(final String parameterName, final Class<T> type) throws SQLException { checkOpen(); try {