This a tiny follop-up of https://github.com/openjdk/jdk/pull/3571.
The loop in `sun.reflect.misc.ReflectUtil.privateCheckPackageAccess()` is redundant since `Class.getPackageName()` will already return the package name of the innermost component type. ------------- Commit messages: - 8267921: Remove redundant loop from sun.reflect.misc.ReflectUtil.privateCheckPackageAccess() Changes: https://git.openjdk.java.net/jdk/pull/4268/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4268&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8267921 Stats: 4 lines in 1 file changed: 0 ins; 4 del; 0 mod Patch: https://git.openjdk.java.net/jdk/pull/4268.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/4268/head:pull/4268 PR: https://git.openjdk.java.net/jdk/pull/4268