コード例 #1
0
  /** 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);
      }
    }
  }
コード例 #2
0
 /** Suppress multiple fields. */
 public static void suppress(Field[] fields) {
   SuppressCode.suppressField(fields);
 }
コード例 #3
0
 /** Suppress a field. */
 public static void suppress(Field field) {
   SuppressCode.suppressField(field);
 }