Skip to content

Replace switch statements with enhanced switch statements for consistency #30283

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

Closed

Conversation

ssang1105
Copy link
Contributor

This PR aims to improve code consistency and readability by updating existing switch statements to use the enhanced switch syntax. The changes have been made only in classes where:

  1. Enhanced switch statements were already being used, ensuring that the entire class now uses the enhanced syntax.
  2. The entire class could be easily refactored to use the enhanced switch syntax without any loss of readability or functionality.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Apr 4, 2023
Copy link
Member

@sbrannen sbrannen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refrain from modifying classes under org.springframework.asm and org.springframework.objenesis. Those include repackaged forks of the third-party libraries ASM and Objenesis. Any refactoring to those classes should take place upstream in the originating repository. The Spring Framework will then pick up the changes when syncing with official updates of the forked third-party libraries.

In light of that, please revert changes to ASM source code.

@sbrannen sbrannen added status: waiting-for-feedback We need additional information before we can continue type: task A general task labels Apr 5, 2023
@sbrannen sbrannen removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged or decided on labels Apr 5, 2023
Copy link
Member

@sbrannen sbrannen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reverting the changes to the ASM package.

@sbrannen sbrannen added this to the 6.0.9 milestone Apr 5, 2023
@sbrannen sbrannen self-assigned this Apr 5, 2023
@snicoll snicoll modified the milestones: 6.0.9, 6.0.x Apr 7, 2023
@ssang1105
Copy link
Contributor Author

@sbrannen When can this code be merged?

@sbrannen
Copy link
Member

sbrannen commented Jun 7, 2023

Hi @ssang1105,

When can this code be merged?

I apologize: I had forgotten about this PR. I'll take another look.

sbrannen added a commit that referenced this pull request Jun 7, 2023
@sbrannen sbrannen closed this in be94e1a Jun 7, 2023
@sbrannen sbrannen modified the milestones: 6.0.x, 6.0.10 Jun 7, 2023
@sbrannen
Copy link
Member

sbrannen commented Jun 7, 2023

This has been merged into 6.0.x and main.

Thanks

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