Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8304918

Remove unused decl field from AnnotatedType implementations

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • core-libs
    • None

      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.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: