Skip to content


8267921: Remove redundant loop from sun.reflect.misc.ReflectUtil.priv…
Browse files Browse the repository at this point in the history

Reviewed-by: alanb, mchung
  • Loading branch information
stsypanov authored and Mandy Chung committed May 31, 2021
1 parent 382e7ec commit c06db45
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/java.base/share/classes/sun/reflect/misc/
Expand Up @@ -124,10 +124,6 @@ public static void checkPackageAccess(Class<?> clazz) {
* NOTE: should only be called if a SecurityManager is installed
private static void privateCheckPackageAccess(SecurityManager s, Class<?> clazz) {
while (clazz.isArray()) {
clazz = clazz.getComponentType();

String pkg = clazz.getPackageName();
if (!pkg.isEmpty()) {
Expand Down

1 comment on commit c06db45

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.