< prev index next >

src/java.base/share/classes/jdk/internal/reflect/UnsafeQualifiedStaticObjectFieldAccessorImpl.java

Print this page

        

@@ -33,11 +33,11 @@
     UnsafeQualifiedStaticObjectFieldAccessorImpl(Field field, boolean isReadOnly) {
         super(field, isReadOnly);
     }
 
     public Object get(Object obj) throws IllegalArgumentException {
-        return isFlatValue() ? unsafe.getValue(obj, fieldOffset, field.getType())
+        return isFlattened() ? unsafe.getValue(obj, fieldOffset, field.getType())
                              : unsafe.getReferenceVolatile(base, fieldOffset);
     }
 
     public boolean getBoolean(Object obj) throws IllegalArgumentException {
         throw newGetBooleanIllegalArgumentException();

@@ -76,11 +76,11 @@
     {
         if (isReadOnly) {
             throwFinalFieldIllegalAccessException(value);
         }
         checkValue(value);
-        if (isFlatValue()) {
+        if (isFlattened()) {
             unsafe.putValue(base, fieldOffset, field.getType(), value);
         } else {
         unsafe.putReferenceVolatile(base, fieldOffset, value);
         }
     }
< prev index next >