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/08/16 23:45:44 UTC
commons-pool git commit: Fix Javadoc nit. Better local var names.
Repository: commons-pool
Updated Branches:
refs/heads/master 3feab0942 -> c2dd4c3ea
Fix Javadoc nit. Better local var names.
Project: http://git-wip-us.apache.org/repos/asf/commons-pool/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-pool/commit/c2dd4c3e
Tree: http://git-wip-us.apache.org/repos/asf/commons-pool/tree/c2dd4c3e
Diff: http://git-wip-us.apache.org/repos/asf/commons-pool/diff/c2dd4c3e
Branch: refs/heads/master
Commit: c2dd4c3ea7311b382034fcf301b40c3fc74027fa
Parents: 3feab09
Author: Gary Gregory <ga...@gmail.com>
Authored: Thu Aug 16 17:45:41 2018 -0600
Committer: Gary Gregory <ga...@gmail.com>
Committed: Thu Aug 16 17:45:41 2018 -0600
----------------------------------------------------------------------
.../java/org/apache/commons/pool2/impl/EvictionTimer.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-pool/blob/c2dd4c3e/src/main/java/org/apache/commons/pool2/impl/EvictionTimer.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/pool2/impl/EvictionTimer.java b/src/main/java/org/apache/commons/pool2/impl/EvictionTimer.java
index 93649fd..2fc9ffd 100644
--- a/src/main/java/org/apache/commons/pool2/impl/EvictionTimer.java
+++ b/src/main/java/org/apache/commons/pool2/impl/EvictionTimer.java
@@ -108,23 +108,23 @@ class EvictionTimer {
}
/**
- * Thread factory that creates a thread, with the context classloader from this class.
+ * Thread factory that creates a thread, with the context class loader from this class.
*/
private static class EvictorThreadFactory implements ThreadFactory {
@Override
- public Thread newThread(final Runnable r) {
- final Thread t = new Thread(null, r, "commons-pool-evictor-thread");
+ public Thread newThread(final Runnable runnable) {
+ final Thread thread = new Thread(null, runnable, "commons-pool-evictor-thread");
AccessController.doPrivileged(new PrivilegedAction<Void>() {
@Override
public Void run() {
- t.setContextClassLoader(EvictorThreadFactory.class.getClassLoader());
+ thread.setContextClassLoader(EvictorThreadFactory.class.getClassLoader());
return null;
}
});
- return t;
+ return thread;
}
}
}