Skip to content

Conversation

@namest504
Copy link
Contributor

Issue #47883

BootZipCopyAction was calling library.openStream() an unnecessary extra time when packaging a stored library.

This was caused by a redundant try-with-resources block that wrapped the call to prepareStoredEntry. As noted in the issue, this block is unnecessary as prepareStoredEntry closes the stream it is given.

This change removes the redundant block to avoid the unnecessary stream opening.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 1, 2025
@namest504 namest504 closed this Nov 1, 2025
@namest504 namest504 reopened this Nov 1, 2025
@wilkinsona wilkinsona changed the title Fix unnecessary stream opening in BootZipCopyAction Remove unnecessary stream opening in BootZipCopyAction Nov 3, 2025
@wilkinsona wilkinsona added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 3, 2025
@wilkinsona wilkinsona added this to the 3.4.x milestone Nov 3, 2025
@snicoll snicoll self-assigned this Nov 3, 2025
snicoll pushed a commit that referenced this pull request Nov 3, 2025
@snicoll snicoll closed this in 7e0a913 Nov 3, 2025
@snicoll
Copy link
Member

snicoll commented Nov 3, 2025

Thanks @namest504

@snicoll snicoll modified the milestones: 3.4.x, 3.4.12 Nov 3, 2025
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.

4 participants