-
Notifications
You must be signed in to change notification settings - Fork 38.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove TYPE_HIERARCHY_AND_ENCLOSING_CLASSES strategy for MergedAnnota…
…tions This commit removes the deprecated TYPE_HIERARCHY_AND_ENCLOSING_CLASSES search strategy from the MergedAnnotations model. As a direct replacement for the TYPE_HIERARCHY_AND_ENCLOSING_CLASSES search strategy, users can use the new fluent search API as follows. MergedAnnotations mergedAnnotations = MergedAnnotations.search(TYPE_HIERARCHY) .withEnclosingClasses(clazz -> true) // always search enclosing classes .from(MyClass.class); Note, however, that users are highly encouraged to use ClassUtils::isInnerClass, ClassUtils::isStaticClass, or a custom predicate other than `clazz -> true`. Closes gh-28080
- Loading branch information
Showing
4 changed files
with
36 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters