changeset 22581 | e868cde95050 |
parent 16051 | 649a03329639 |
child 25392 | 0eabdbb887aa |
--- a/jdk/src/share/classes/java/lang/reflect/AccessibleObject.java Mon Jan 27 17:13:16 2014 +0400 +++ b/jdk/src/share/classes/java/lang/reflect/AccessibleObject.java Mon Jan 27 14:29:37 2014 +0100 @@ -93,8 +93,8 @@ throws SecurityException { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(ACCESS_PERMISSION); - for (int i = 0; i < array.length; i++) { - setAccessible0(array[i], flag); + for (AccessibleObject ao : array) { + setAccessible0(ao, flag); } }