Skip to content

Commit fee056a

Browse files
committed
Simplify search algorithms in AnnotatedElementUtils
This commit introduces a boolean alwaysProcesses() method in the Processor API which allows for simplification across all search algorithms within AnnotatedElementUtils. Specifically, it is no longer necessary for process() methods to verify that the supplied annotation is actually the sought target annotation. In addition, duplicated code has been extracted into common methods (e.g., hasMetaAnnotationTypes()) and common Processor implementations (e.g., AlwaysTrueBooleanAnnotationProcessor).
1 parent c6f6e19 commit fee056a

File tree

2 files changed

+150
-147
lines changed

2 files changed

+150
-147
lines changed

0 commit comments

Comments
 (0)