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

Upgrade AnnotatedElement.isAnnotionPresent to be a default method

XMLWordPrintable

    • b77
    • generic
    • generic
    • Verified

      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.

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

              Created:
              Updated:
              Resolved: