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

Add fast path for ClassUtils.hasMethod #24282

Merged
merged 1 commit into from Jan 8, 2020

Conversation

stsypanov
Copy link
Contributor

Detecting of whether a Class has particular method could have a fastpath for the case when the method is declared directly in that class. When we have an instance of Method then we could first check its declaring class and only then go through conventional path involving heavy usage of reflection.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jan 2, 2020
@jhoeller jhoeller self-assigned this Jan 8, 2020
@jhoeller jhoeller added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jan 8, 2020
@jhoeller jhoeller added this to the 5.2.3 milestone Jan 8, 2020
@jhoeller jhoeller merged commit 8e5cad2 into spring-projects:master Jan 8, 2020
jhoeller added a commit that referenced this pull request Jan 8, 2020
@stsypanov stsypanov deleted the simplify-reflection branch January 8, 2020 22:54
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: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants