Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Producible enums to indicate a default value
Add an `isDefault()` method to `Producible` which can be used to indicate which of the enum values should be used when the accept header is `*/*` or `null`. Prior to this commit, the last enum value was always used as the default. See gh-28130
- Loading branch information
1 parent
a1c88fa
commit d8141e6
Showing
3 changed files
with
117 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters