< prev index next >

src/java.base/share/classes/java/lang/reflect/ReflectAccess.java

Print this page

        

@@ -163,21 +163,6 @@
     public <T> T newInstance(Constructor<T> ctor, Object[] args, Class<?> caller)
         throws IllegalAccessException, InstantiationException, InvocationTargetException
     {
         return ctor.newInstanceWithCaller(args, true, caller);
     }
-    /*
-     * With a Field object for C.f of type T, T should have been resolved
-     * and T must be present in ValueType attribute.
-     */
-    public boolean isFlattenable(Field f) {
-        return (f.getModifiers() & Modifier.FLATTENABLE) == Modifier.FLATTENABLE;
-    }
-
-    public boolean isFlatValue(Field f) {
-        return (f.getModifiers() & Modifier.FLATTENED) == Modifier.FLATTENED;
-    }
-
-    public boolean canBeNull(Field f) {
-        return !isFlattenable(f);
-    }
 }
< prev index next >