Skip to content

Conversation

@achhibi
Copy link
Contributor

@achhibi achhibi commented Dec 14, 2023

This pull request simplifies the code and makes it more readable by combining two conditions into a single statement using the logical AND operator (&&). Now, the enclosed statement executes only when both conditions (a and b) are true.

Your review and consideration for merging are appreciated to improve overall code quality.

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

snicoll commented Dec 15, 2023

@achhibi as I've mentioned previously, we prefer to do such stylistic code change ourselves in general. I am going to merge this one but please take the above in consideration going forward.

@snicoll snicoll added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Dec 15, 2023
@snicoll snicoll changed the title Combine conditions for better readability and simplicity Polish if statement in ScopedProxyBeanDefinitionDecorator Dec 15, 2023
@snicoll snicoll added this to the 6.1.3 milestone Dec 15, 2023
@snicoll snicoll self-assigned this Dec 15, 2023
@snicoll snicoll merged commit 7f79ccb into spring-projects:main Dec 15, 2023
snicoll added a commit that referenced this pull request Dec 15, 2023
snicoll added a commit that referenced this pull request Dec 15, 2023
* pr/31847:
  Upgrade copyright year of changed file
  Combine conditions for better readability and simplicity

Closes gh-31847
@achhibi
Copy link
Contributor Author

achhibi commented Dec 15, 2023

@snicoll Thank you for taking the time to review; I will take your feedback into consideration.

@sbrannen sbrannen changed the title Polish if statement in ScopedProxyBeanDefinitionDecorator Combine if-statements in ScopedProxyBeanDefinitionDecorator Dec 15, 2023
@sbrannen sbrannen added the in: core Issues in core modules (aop, beans, core, context, expression) label Dec 15, 2023
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: task A general task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants