Skip to content

Polish usage of '@ConditionalOnWebApplication' for consistency #45880

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

quaff
Copy link
Contributor

@quaff quaff commented Jun 11, 2025

No description provided.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 11, 2025
@philwebb philwebb changed the title Polish usage of @ConditionalOnWebApplication for consistency Polish usage of '@ConditionalOnWebApplication' for consistency Jun 11, 2025
@philwebb
Copy link
Member

It's unfortunately hard to come up with a general rules for these that we can enforce. In some cases (like this one), I like the proposed change. In others, I prefer the extra context of the enclosing class (e.g. WebClient.Builder).

We should probably just deal with most of these as we find them. I was going to close this issue and suggest we do that, but I do like the update. I think we might just leave this one for a little while until the restructure work lands because we don't want to cause more rebase pain.

Thanks for the PR @quaff.

@philwebb philwebb added type: task A general task status: on-hold We can't start working on this issue yet and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 11, 2025
@philwebb philwebb added this to the 3.4.x milestone Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: on-hold We can't start working on this issue yet type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants