1. 30 10月, 2019 1 次提交
  2. 05 9月, 2019 1 次提交
  3. 20 8月, 2019 1 次提交
  4. 17 8月, 2019 1 次提交
  5. 27 5月, 2019 1 次提交
    • P
      Use less confusing MergedAnnotation method names · e386e53f
      Phillip Webb 提交于
      Rename some `MergedAnnotation` methods to prevent using parent/child
      terminology, specifically:
      
      	`getDepth()` has been renamed `getDistance()`
      	`getParent()` has been renamed `getMetaSource()`
      	`getTypeHierarchy()` has been renamed `getMetaTypes()`
      
      The parent child naming was particularly confusing given that the
      parent/child relationships were inverted from the way that a lot of
      users think about meta-annotations. For example, a `@RequestMapping`
      having a parent of `@GetMapping` feels odd given that `@GetMapping`
      is the thing declaring the meta-annotation relationship.
      
      The new method names are designed to align more closely with existing
      terms. For example, `getMetaSource` hints at the relationship with
      `isMetaAnnotated` and `getSource`.
      
      Closes gh-22946
      e386e53f
  6. 13 5月, 2019 1 次提交
  7. 09 5月, 2019 1 次提交
    • P
      Remove '.*' imports from tests · 816bbee8
      Phillip Webb 提交于
      Organize test imports to expand all '.*' static imports into
      fully qualified imports.
      
      This update will allow us to use additional checkstyle rules in
      the future, and will also help if we migrate fully to AssertJ.
      816bbee8
  8. 08 5月, 2019 2 次提交
    • P
      Migrate away from ExpectedException (#22922) · d7320de8
      Phil Webb 提交于
      * Add limited checkstyles to test code
      
      Add a limited set of checkstyle rules to the test codebase to improve
      code consistency.
      
      * Fix checksyle violations in test code
      
      * Organize imports to fix checkstyle for test code
      
      * Migrate to assertThatExceptionOfType
      
      Migrate aware from ExpectedException rules to AssertJ exception
      assertions. Also include a checkstyle rules to ensure that the
      the ExpectedException is not accidentally used in the future.
      
      See gh-22894
      d7320de8
    • P
      Add MergedAnnotation.getTypeHierarchy method · 3b145a5a
      Phillip Webb 提交于
      Add a `getTypeHierarchy()` method to `MergedAnnotation` that can be used
      to return the full type hierarchy information. This method is
      specifically designed to be used in combination with
      `MergedAnnotationPredicates.unique`.
      
      This update also allows us to delete the `parentAndType` method
      from `AnnotatedElementUtils`.
      
      Closes gh-22908
      3b145a5a
  9. 23 3月, 2019 3 次提交
    • S
      URL Cleanup - update remaining license headers · 9b7215e6
      Sam Brannen 提交于
      See gh-22617 gh-22622 gh-22635
      9b7215e6
    • J
      Nullability refinements (no IntelliJ warnings, fewer null checks) · 5e15338a
      Juergen Hoeller 提交于
      Includes consistent ignoring of all java.lang (meta-)annotations.
      
      Closes gh-22586
      5e15338a
    • P
      Create a new API for handling merged annotations · 4972d85a
      Phillip Webb 提交于
      Add new `MergedAnnotations` and `MergedAnnotation` interfaces that
      attempt to provide a uniform way for dealing with merged annotations.
      
      Specifically, the new API provides alternatives for the static methods
      in `AnnotationUtils` and `AnnotatedElementUtils` and supports Spring's
      comprehensive annotation attribute `@AliasFor` features. The interfaces
      also open the possibility of the same API being exposed from the
      `AnnotationMetadata` interface.
      
      Additional utility classes for collecting, filtering and selecting
      annotations have also been added.
      
      Typical usage for the new API would be something like:
      
      	MergedAnnotations.from(Example.class)
      		.stream(MyAnnotation.class)
      		.map(a -> a.getString("value"))
      		.forEach(System.out::println);
      
      Closes gh-21697
      4972d85a