Integrated: 8304918: Remove unused decl field from AnnotatedType implementations
Chen Liang
liach at openjdk.org
Tue Apr 25 23:26:58 UTC 2023
On Sat, 25 Mar 2023 05:52:44 GMT, Chen Liang <liach at openjdk.org> wrote:
> In `AnnotatedTypeBaseImpl`, a `decl` field is declared, referring to the declaration that the AnnotatedType is from. However, this field is not used anywhere except passing to constructors of other implementations; it's not used in debug messages (unlike in `TypeAnnotation`), not involved in equality checks. Since these implementations are not serializable, we can safely remove the decl field from the implementations. All 1048 java/lang tests pass on my machine.
This pull request has now been integrated.
Changeset: adf62feb
Author: Chen Liang <liach at openjdk.org>
Committer: Joe Darcy <darcy at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/adf62febe6ccfd0b433588fe93fb6903848effbb
Stats: 52 lines in 2 files changed: 0 ins; 25 del; 27 mod
8304918: Remove unused decl field from AnnotatedType implementations
Reviewed-by: stsypanov, darcy
-------------
PR: https://git.openjdk.org/jdk/pull/13183
More information about the core-libs-dev
mailing list