Fix style check error for UnsafeDetectUtil.java

This commit is contained in:
Ngoc Dao 2012-01-26 23:01:51 +09:00
parent 6c68773ad4
commit 4396b421f1

View File

@ -46,11 +46,12 @@ public final class UnsafeDetectUtil {
}
private static boolean hasUnsafeField(final Class<?> unsafeClass) throws PrivilegedActionException {
return AccessController.doPrivileged (new PrivilegedExceptionAction<Boolean>() {
return AccessController.doPrivileged(new PrivilegedExceptionAction<Boolean>() {
public Boolean run() throws Exception {
unsafeClass.getDeclaredField(THE_UNSAFE);
return true;
}});
}
});
}
public static boolean isUnsafeFound() {