Repository: commons-dbcp Updated Branches: refs/heads/master 93b0d6b3a -> 6b436a0dc
Some ivars use _ as a prefix and some others do not. Normalize to not use a _ prefix. Project: http://git-wip-us.apache.org/repos/asf/commons-dbcp/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-dbcp/commit/6b436a0d Tree: http://git-wip-us.apache.org/repos/asf/commons-dbcp/tree/6b436a0d Diff: http://git-wip-us.apache.org/repos/asf/commons-dbcp/diff/6b436a0d Branch: refs/heads/master Commit: 6b436a0dc1c32095698fa777ea1365f5bbfc672f Parents: 93b0d6b Author: Gary Gregory <[email protected]> Authored: Sun Jun 10 11:10:58 2018 -0600 Committer: Gary Gregory <[email protected]> Committed: Sun Jun 10 11:10:58 2018 -0600 ---------------------------------------------------------------------- .../dbcp2/cpdsadapter/DriverAdapterCPDS.java | 24 ++++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-dbcp/blob/6b436a0d/src/main/java/org/apache/commons/dbcp2/cpdsadapter/DriverAdapterCPDS.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/dbcp2/cpdsadapter/DriverAdapterCPDS.java b/src/main/java/org/apache/commons/dbcp2/cpdsadapter/DriverAdapterCPDS.java index 4bf0a01..8f5e423 100644 --- a/src/main/java/org/apache/commons/dbcp2/cpdsadapter/DriverAdapterCPDS.java +++ b/src/main/java/org/apache/commons/dbcp2/cpdsadapter/DriverAdapterCPDS.java @@ -127,11 +127,11 @@ public class DriverAdapterCPDS // PreparedStatement pool properties private boolean poolPreparedStatements; private int maxIdle = 10; - private long _timeBetweenEvictionRunsMillis = + private long timeBetweenEvictionRunsMillis = BaseObjectPoolConfig.DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS; - private int _numTestsPerEvictionRun = -1; - private int _minEvictableIdleTimeMillis = -1; - private int _maxPreparedStatements = -1; + private int numTestsPerEvictionRun = -1; + private int minEvictableIdleTimeMillis = -1; + private int maxPreparedStatements = -1; /** Whether or not getConnection has been called */ private volatile boolean getConnectionCalled = false; @@ -619,7 +619,7 @@ public class DriverAdapterCPDS * @see #setTimeBetweenEvictionRunsMillis(long) */ public long getTimeBetweenEvictionRunsMillis() { - return _timeBetweenEvictionRunsMillis; + return timeBetweenEvictionRunsMillis; } /** @@ -636,7 +636,7 @@ public class DriverAdapterCPDS public void setTimeBetweenEvictionRunsMillis( final long timeBetweenEvictionRunsMillis) { assertInitializationAllowed(); - _timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis; + this.timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis; } /** @@ -647,7 +647,7 @@ public class DriverAdapterCPDS * @return the number of statements to examine during each run of the idle object evictor thread (if any.) */ public int getNumTestsPerEvictionRun() { - return _numTestsPerEvictionRun; + return numTestsPerEvictionRun; } /** @@ -667,7 +667,7 @@ public class DriverAdapterCPDS */ public void setNumTestsPerEvictionRun(final int numTestsPerEvictionRun) { assertInitializationAllowed(); - _numTestsPerEvictionRun = numTestsPerEvictionRun; + this.numTestsPerEvictionRun = numTestsPerEvictionRun; } /** @@ -679,7 +679,7 @@ public class DriverAdapterCPDS * @return the minimum amount of time a statement may sit idle in the pool. */ public int getMinEvictableIdleTimeMillis() { - return _minEvictableIdleTimeMillis; + return minEvictableIdleTimeMillis; } /** @@ -695,7 +695,7 @@ public class DriverAdapterCPDS */ public void setMinEvictableIdleTimeMillis(final int minEvictableIdleTimeMillis) { assertInitializationAllowed(); - _minEvictableIdleTimeMillis = minEvictableIdleTimeMillis; + this.minEvictableIdleTimeMillis = minEvictableIdleTimeMillis; } /** @@ -725,7 +725,7 @@ public class DriverAdapterCPDS */ public int getMaxPreparedStatements() { - return _maxPreparedStatements; + return maxPreparedStatements; } /** @@ -736,7 +736,7 @@ public class DriverAdapterCPDS */ public void setMaxPreparedStatements(final int maxPreparedStatements) { - _maxPreparedStatements = maxPreparedStatements; + this.maxPreparedStatements = maxPreparedStatements; } private void update(final Properties properties, final String key, final String value) {
