Skip to content

Remove unnecessary null check in GroovyTemplateAutoConfigurationTests - #51147

Merged
snicoll merged 1 commit into
spring-projects:4.0.xfrom
vvzvvv:remove-null-check
Jul 30, 2026
Merged

Remove unnecessary null check in GroovyTemplateAutoConfigurationTests#51147
snicoll merged 1 commit into
spring-projects:4.0.xfrom
vvzvvv:remove-null-check

Conversation

@vvzvvv

@vvzvvv vvzvvv commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

context field is final and always initialized inline, so it can't be null here. Removed the check.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 29, 2026
@snicoll snicoll self-assigned this Jul 30, 2026
@snicoll snicoll added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 30, 2026
@snicoll snicoll added this to the 4.0.8 milestone Jul 30, 2026
The context field is final and eagerly initialized, so it can
never be null at teardown time.

See spring-projectsgh-51147

Signed-off-by: vvzvvv <tmdgusv@gmail.com>
@snicoll
snicoll force-pushed the remove-null-check branch from 2478d10 to e02521d Compare July 30, 2026 06:42
@snicoll
snicoll changed the base branch from main to 4.0.x July 30, 2026 06:42
@snicoll
snicoll merged commit bf11d7f into spring-projects:4.0.x Jul 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: task A general task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants