--- a/jdk/src/share/classes/java/util/concurrent/atomic/AtomicLongFieldUpdater.java Fri Oct 26 11:21:02 2012 +0100
+++ b/jdk/src/share/classes/java/util/concurrent/atomic/AtomicLongFieldUpdater.java Fri Oct 26 21:34:24 2012 +0100
@@ -59,7 +59,7 @@
* @author Doug Lea
* @param <T> The type of the object holding the updatable field
*/
-public abstract class AtomicLongFieldUpdater<T> {
+public abstract class AtomicLongFieldUpdater<T> {
/**
* Creates and returns an updater for objects with the given field.
* The Class argument is needed to check that reflective types and
@@ -274,9 +274,9 @@
private final Class<?> cclass;
CASUpdater(final Class<T> tclass, final String fieldName) {
- Field field = null;
- Class<?> caller = null;
- int modifiers = 0;
+ final Field field;
+ final Class<?> caller;
+ final int modifiers;
try {
field = AccessController.doPrivileged(
new PrivilegedExceptionAction<Field>() {