Modifier and Type | Field and Description |
---|---|
static boolean |
JDK_1_5
Is the running JVM JDK 1.5?
|
Constructor and Description |
---|
JDKUtils() |
Modifier and Type | Method and Description |
---|---|
static Lock |
createLockForThreadLocalCreation()
Returns a
ReentrantLock used to serialize access to the construction of a thread local; this is only needed under JDK 1.5 (due to a bug in the JDK);
for other JDKs, a DummyLock is returned. |
public static final boolean JDK_1_5
public JDKUtils()
public static Lock createLockForThreadLocalCreation()
ReentrantLock
used to serialize access to the construction of a thread local; this is only needed under JDK 1.5 (due to a bug in the JDK);
for other JDKs, a DummyLock
is returned.Copyright © 2003-2012 The Apache Software Foundation.