Integrated: 8267921: Remove redundant loop from sun.reflect.misc.ReflectUtil.privateCheckPackageAccess()

Сергей Цыпанов github.com+10835776+stsypanov at openjdk.java.net
Mon May 31 17:02:26 UTC 2021


On Mon, 31 May 2021 07:36:10 GMT, Сергей Цыпанов <github.com+10835776+stsypanov at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: c06db45f
Author:    Sergey Tsypanov <sergei.tsypanov at yandex.ru>
Committer: Mandy Chung <mchung at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/c06db45fa77c8a90518d6ff023de6c46b7c89997
Stats:     4 lines in 1 file changed: 0 ins; 4 del; 0 mod

8267921: Remove redundant loop from sun.reflect.misc.ReflectUtil.privateCheckPackageAccess()

Reviewed-by: alanb, mchung

-------------

PR: https://git.openjdk.java.net/jdk/pull/4268


More information about the core-libs-dev mailing list