Integrated: 8347397: Cleanup of JDK-8169880
Peter Levart
plevart at openjdk.org
Fri Jan 10 14:49:47 UTC 2025
On Fri, 10 Jan 2025 07:30:04 GMT, Peter Levart <plevart at openjdk.org> wrote:
> [JDK-8169880](https://bugs.openjdk.org/browse/JDK-8169880) removed a debugging option to disable caching of reflective data in java.lang.Class, which had a consequence that now Class#reflectiveData method guarantees to return a non-null result. Existing callers of that method were left intact and still contain null checks and branches that are never taken after this change. Some new callers were added later and they don't have null checks. I propose a patch to remove these unneeded null checks and never taken branches.
This pull request has now been integrated.
Changeset: beb0e607
Author: Peter Levart <plevart at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/beb0e607d3b66b9e97c263cd8f2e23f447ebfc50
Stats: 58 lines in 1 file changed: 2 ins; 27 del; 29 mod
8347397: Cleanup of JDK-8169880
Reviewed-by: liach, alanb
-------------
PR: https://git.openjdk.org/jdk/pull/23025
More information about the core-libs-dev
mailing list