Skip to content

Hoist constant result of SerializableTypeWrapper.unwrap() out of loop#24167

Merged
jhoeller merged 1 commit into
spring-projects:masterfrom
stsypanov:rt
Dec 9, 2019
Merged

Hoist constant result of SerializableTypeWrapper.unwrap() out of loop#24167
jhoeller merged 1 commit into
spring-projects:masterfrom
stsypanov:rt

Conversation

@stsypanov

Copy link
Copy Markdown
Contributor

There is no point in calculatation of expression

TypeVariable<?> v2 = SerializableTypeWrapper.unwrap(variable);

at each iteration of the loop as far as its result depends only on method's argument.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Dec 9, 2019
@jhoeller jhoeller self-assigned this Dec 9, 2019
@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 Dec 9, 2019
@jhoeller jhoeller added this to the 5.2.3 milestone Dec 9, 2019
@jhoeller jhoeller merged commit ebbb562 into spring-projects:master Dec 9, 2019
@stsypanov stsypanov deleted the rt branch December 9, 2019 12:15
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