/** Suppress an array of accessible objects. */ public static void suppress(AccessibleObject[] accessibleObjects) { if (accessibleObjects == null) { throw new IllegalArgumentException("accessibleObjects cannot be null"); } for (AccessibleObject accessibleObject : accessibleObjects) { if (accessibleObject instanceof Constructor<?>) { SuppressCode.suppressConstructor((Constructor<?>) accessibleObject); } else if (accessibleObject instanceof Field) { SuppressCode.suppressField((Field) accessibleObject); } else if (accessibleObject instanceof Method) { SuppressCode.suppressMethod((Method) accessibleObject); } } }
/** Suppress multiple fields. */ public static void suppress(Field[] fields) { SuppressCode.suppressField(fields); }
/** Suppress a field. */ public static void suppress(Field field) { SuppressCode.suppressField(field); }