Skip to content

Commit

Permalink
Change @enhancement#withAnnotations default value to empty array
Browse files Browse the repository at this point in the history
Previously, the default value of `@Enhancement#withAnnotations` was
the `BeanDefiningAnnotations.class` marker type. To align with
Portable Extensions, which don't have any annotation restriction
by default, this commit changes the default value to an empty array.
  • Loading branch information
Ladicek committed Nov 29, 2021
1 parent f56077a commit a63aa70
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,12 @@
* be used to narrow down the set of <em>expected types</em> to types that use
* any bean defining annotation.
* <p>
* Defaults to the {@linkplain BeanDefiningAnnotations set of bean defining annotations}.
* Defaults to an empty array, so that the set of <em>expected types</em> is not
* narrowed down in any way.
*
* @return types of annotations that must be present on the <em>expected types</em>
*/
Class<? extends Annotation>[] withAnnotations() default BeanDefiningAnnotations.class;
Class<? extends Annotation>[] withAnnotations() default {};

/**
* Marker annotation type that, for the purpose of {@link Enhancement#withAnnotations()},
Expand Down

0 comments on commit a63aa70

Please sign in to comment.