[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: commons-crypto git commit: final comes last; static constants are uppercase
From: sebb () apache ! org
Date: 2016-06-30 20:54:11
Message-ID: cbe37604f5e54d3ca5baa3269a69e233 () git ! apache ! org
[Download RAW message or body]
Repository: commons-crypto
Updated Branches:
refs/heads/master ae8e3506d -> 1dc0e0577
final comes last; static constants are uppercase
Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/1dc0e057
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/1dc0e057
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/1dc0e057
Branch: refs/heads/master
Commit: 1dc0e0577596b5527b6dc3befd2b793aa35ec4fd
Parents: ae8e350
Author: Sebb <sebb@apache.org>
Authored: Thu Jun 30 21:54:08 2016 +0100
Committer: Sebb <sebb@apache.org>
Committed: Thu Jun 30 21:54:08 2016 +0100
----------------------------------------------------------------------
.../org/apache/commons/crypto/utils/ReflectionUtils.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/1dc0e057/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java \
b/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java index \
6dfba17..52cb745 100644
--- a/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java
+++ b/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java
@@ -32,12 +32,12 @@ public final class ReflectionUtils {
private static final Map<ClassLoader, Map<String, WeakReference<Class<?>>>> \
CACHE_CLASSES = new WeakHashMap<>();
- private final static ClassLoader classLoader;
+ private static final ClassLoader CLASSLOADER;
static {
ClassLoader threadClassLoader = Thread.currentThread()
.getContextClassLoader();
- classLoader = (threadClassLoader != null) ? threadClassLoader
+ CLASSLOADER = (threadClassLoader != null) ? threadClassLoader
: CryptoCipher.class.getClassLoader();
}
@@ -119,11 +119,11 @@ public final class ReflectionUtils {
Map<String, WeakReference<Class<?>>> map;
synchronized (CACHE_CLASSES) {
- map = CACHE_CLASSES.get(classLoader);
+ map = CACHE_CLASSES.get(CLASSLOADER);
if (map == null) {
map = Collections
.synchronizedMap(new WeakHashMap<String, \
WeakReference<Class<?>>>());
- CACHE_CLASSES.put(classLoader, map);
+ CACHE_CLASSES.put(CLASSLOADER, map);
}
}
@@ -135,7 +135,7 @@ public final class ReflectionUtils {
if (clazz == null) {
try {
- clazz = Class.forName(name, true, classLoader);
+ clazz = Class.forName(name, true, CLASSLOADER);
} catch (ClassNotFoundException e) {
// Leave a marker that the class isn't found
map.put(name, new WeakReference<Class<?>>(
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic