-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not throw deprecated warning on field getters for default val…
…ues (#17788) fixes #13428 Wraps deprecated field getters in a conditional to see if the value has been set before throwing the warning. This is because this method is used internally, so users can get deprecated warnings even when they are not using the field. Closes #17788 COPYBARA_INTEGRATE_REVIEW=#17788 from bshaffer:wrap-deprecation-in-conditional 084c87d PiperOrigin-RevId: 665346195
- Loading branch information
1 parent
b0db5bd
commit 6d84da5
Showing
3 changed files
with
223 additions
and
89 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
Oops, something went wrong.