add AccessibleObject.setAccessible(AccessibleObject[],boolean)

This commit is contained in:
Joel Dice 2009-08-13 09:03:44 -06:00
parent f96fa82607
commit 9553d56977

View File

@ -16,4 +16,8 @@ public abstract class AccessibleObject {
public abstract boolean isAccessible();
public abstract void setAccessible(boolean v);
public static void setAccessible(AccessibleObject[] array, boolean v) {
for (AccessibleObject o: array) o.setAccessible(v);
}
}