Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused class filtering support in AnnotationScanner #25477

Conversation

sbrannen
Copy link
Member

PR gh-25429 brought it to our attention that there was a bug in
AnnotationScanner when using a non-null class filter that filtered out
classes; however, it turns out that there is no production code that
utilizes the package-private class filtering support.

This commit therefore removes all class filtering support from
AnnotationScanner since that functionality was effectively unused.

PR spring-projectsgh-25429 brought it to our attention that there was a bug in
AnnotationScanner when using a non-null class filter that filtered out
classes; however, it turns out that there is no production code that
utilizes the package-private class filtering support.

This commit therefore removes all class filtering support from
AnnotationScanner since that functionality was effectively unused.
@sbrannen sbrannen self-assigned this Jul 25, 2020
@sbrannen sbrannen added this to the 5.2.9 milestone Jul 25, 2020
@sbrannen sbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: task A general task labels Jul 25, 2020
@sbrannen
Copy link
Member Author

@philwebb and @jhoeller, I've requested your review of this PR.

I assume there was originally an intent to utilize the class filtering functionality in AnnotationScanner, but since this functionality is currently not used, I figured we should simply remove it altogether.

Thus, if you don't foresee any need to keep this functionality in place, I'll merge this PR for 5.2.x and master.

@sbrannen sbrannen closed this in 2b3fdfa Jul 28, 2020
@sbrannen sbrannen deleted the AnnotationScanner-class-filtering branch July 28, 2020 08:02
FelixFly pushed a commit to FelixFly/spring-framework that referenced this pull request Aug 16, 2020
PR spring-projectsgh-25429 brought it to our attention that there was a bug in
AnnotationScanner when using a non-null class filter that filtered out
classes; however, it turns out that there is no production code that
utilizes the package-private class filtering support.

This commit therefore removes all class filtering support from
AnnotationScanner since that functionality is effectively unused.

Closes spring-projectsgh-25477
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant