Skip to content

Add fast path for ClassUtils.hasMethod#24282

Merged
jhoeller merged 1 commit intospring-projects:masterfrom
stsypanov:simplify-reflection
Jan 8, 2020
Merged

Add fast path for ClassUtils.hasMethod#24282
jhoeller merged 1 commit intospring-projects:masterfrom
stsypanov:simplify-reflection

Conversation

@stsypanov
Copy link
Copy Markdown
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.

3 participants