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

Upgrade AnnotatedElement.isAnnotionPresent to be a default method

    XMLWordPrintable

Details

    • b77
    • generic
    • generic
    • Verified

    Description

      While default methods are useful when adding new methods to interfaces, when convenience methods on existing interfaces are defined in terms of calling other methods of the interface, the existing methods can be turned into default methods.

      This situation exists with AnnotatedElement.isAnnotionPresent and AnnotatedElement.getAnnotation.

      Attachments

        Issue Links

          Activity

            People

              darcy Joe Darcy
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: