-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Rename field to prevent any missunderstanding clash #12574
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
base: 5.0.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,12 +77,12 @@ interface BindingResult<T> { | |
| /** | ||
| * An empty but satisfied result. | ||
| */ | ||
| BindingResult EMPTY = Optional::empty; | ||
| BindingResult BINDING_RESULT_EMPTY = Optional::empty; | ||
|
||
|
|
||
| /** | ||
| * An empty but unsatisfied result. | ||
| */ | ||
| BindingResult UNSATISFIED = new BindingResult() { | ||
| BindingResult BINDING_RESULT_UNSATISFIED = new BindingResult() { | ||
|
||
| @Override | ||
| public Optional getValue() { | ||
| return Optional.empty(); | ||
|
|
@@ -154,7 +154,7 @@ default <R> BindingResult<R> flatMap(Function<T, BindingResult<R>> transform) { | |
| * @since 4.0.0 | ||
| */ | ||
| static <R> BindingResult<R> empty() { | ||
| return BindingResult.EMPTY; | ||
| return BindingResult.BINDING_RESULT_EMPTY; | ||
|
||
| } | ||
|
|
||
| /** | ||
|
|
@@ -163,7 +163,7 @@ static <R> BindingResult<R> empty() { | |
| * @since 4.0.0 | ||
| */ | ||
| static <R> BindingResult<R> unsatisfied() { | ||
| return UNSATISFIED; | ||
| return BINDING_RESULT_UNSATISFIED; | ||
|
||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renaming the public constant
GracefulShutdownConfiguration.ENABLEDtoMICRONAUT_LIFECYCLE_GRACEFUL_SHUTDOWN_ENABLEDis also a breaking change for downstream code that references this constant (common in@Requires(property=...)usage). Consider retainingENABLEDas an@Deprecatedalias to the new constant to avoid breaking consumers, while using the new constant internally.