1. 20 6月, 2015 1 次提交
    • S
      Honor contract of @Repeatable in AnnotationUtils · fb83e83e
      Sam Brannen 提交于
      Prior to this commit, the implementation of getRepeatableAnnotation()
      in Spring's AnnotationUtils complied neither with the contract of
      getAnnotationsByType() nor with the contract of
      getDeclaredAnnotationsByType() as defined in AnnotatedElement in Java 8.
      
      Specifically, unexpected results can be encountered when using Spring's
      support for @Repeatable annotations: either annotations show up in the
      returned set in the wrong order, or annotations are returned in the set
      that should not even be found based on the semantics of @Repeatable.
      
      This commit remedies this problem by deprecating the existing
      getRepeatableAnnotation() methods and replacing them with new
      getRepeatableAnnotations() and getDeclaredRepeatableAnnotations()
      methods that comply with the contracts of Java's getAnnotationsByType()
      and getDeclaredAnnotationsByType(), respectively.
      
      Issue: SPR-13068
      fb83e83e
  2. 19 6月, 2015 8 次提交
    • S
      Delete trailing whitespace in XML files · 6c530b7b
      Sam Brannen 提交于
      6c530b7b
    • S
      Delete trailing whitespace in Java source code · 078d252d
      Sam Brannen 提交于
      078d252d
    • S
      b36c9f9f
    • S
      Clean up warnings and polish tests · 23547a72
      Sam Brannen 提交于
      23547a72
    • S
      Polishing · 20a14745
      Sam Brannen 提交于
      20a14745
    • S
      Fix typo · 37d61375
      Sam Brannen 提交于
      37d61375
    • S
      Synthesize annotation from map w/ minimal attributes · ece12f9d
      Sam Brannen 提交于
      The initial support for synthesizing an annotation from a Map (or
      AnnotationAttributes) introduced in SPR-13067 required that the map
      contain key-value pairs for every attribute defined by the supplied
      annotationType. However, there are use cases that would benefit from
      being able to supply a reduced set of attributes and still have the
      annotation synthesized properly.
      
      This commit refines the validation mechanism in
      MapAnnotationAttributeExtractor so that a reduced set of attributes may
      be supplied. Specifically, if an attribute is missing in the supplied
      map the attribute will be set either to value of its alias (if an alias
      value configured via @AliasFor exists) or to the value of the
      attribute's default value (if defined), and otherwise an exception will
      be thrown.
      
      Furthermore, TransactionalTestExecutionListener has been refactored to
      take advantage of this new feature by synthesizing an instance of
      @TransactionConfiguration solely from the default values of its
      declared attributes.
      
      Issue: SPR-13087
      ece12f9d
    • S
      Polish · 1e39a188
      Sebastien Deleuze 提交于
      1e39a188
  3. 18 6月, 2015 9 次提交
  4. 17 6月, 2015 11 次提交
  5. 16 6月, 2015 11 次提交