Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-9744

TypeDescriptor getAnnotation method should use generics

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.2 M1
    • Fix Version/s: 3.2 RC1
    • Component/s: Core
    • Last commented by a User:
      false

      Description

      It would be better if getAnnotation worked in the same was as the java Method class:

          public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {

        Activity

        Show
        pwebb Phil Webb added a comment - https://github.com/SpringSource/spring-framework/pull/134

          People

          • Assignee:
            pwebb Phil Webb
            Reporter:
            pwebb Phil Webb
            Last updater:
            Chris Beams
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 13 weeks ago