Skip to content

Remove function and use PropertyResolver - #4240

Merged
ryanjbaxter merged 1 commit into
spring-cloud:mainfrom
ryanjbaxter:use-propertyresolver-remove-function
Jan 24, 2024
Merged

ryanjbaxter merged 1 commit into
spring-cloud:mainfrom
ryanjbaxter:use-propertyresolver-remove-function

Conversation

@ryanjbaxter

Copy link
Copy Markdown
Contributor

This relates to spring-cloud/spring-cloud-config#2375

And reverts part of #4175

@ryanjbaxter ryanjbaxter added this to the 4.0.4 milestone Jan 22, 2024
() -> new PropertyResolver(context.get(Binder.class), context.getOrElse(BindHandler.class, null)));
}

public static Boolean getDiscoveryEnabled(BootstrapContext bootstrapContext) {

@pantherdd pantherdd Jan 23, 2024 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unnecessary auto-boxing to Boolean (and I now realized, that's why this implementation has a method named get* instead of is*).

@ryanjbaxter
ryanjbaxter merged commit 05eec78 into spring-cloud:main Jan 24, 2024
ryanjbaxter added a commit that referenced this pull request Jan 24, 2024
This relates to spring-cloud/spring-cloud-config#2375

And reverts part of #4175

Co-authored-by: Ryan Baxter <524254+ryanjbaxter@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants