diff options
author | mstaib <mstaib@google.com> | 2017-12-08 13:30:16 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-12-08 13:31:41 -0800 |
commit | d899ad535b43b027112213b1ecd7bc0b18938b6e (patch) | |
tree | 6fde1faec4d91466ad4542e21a04bf55dac02900 /examples | |
parent | 865b8887daca1477216ebe2527ad35f07081c778 (diff) |
Make config_feature_flag's default_value optional.
With this change, if the default_value is not set, but the flag
has been given a value by a configuration transition, that value
is used and no error is produced.
If the default_value is not set and the flag has not been given
a value by a configuration transition, the rule produces an
error (as it did before, but now the error is different).
config_feature_flags with default_values behave as they did before.
(use the default value if no configured value is set, otherwise use
the configured value)
Also transition the Optional used in feature flags from Guava to
Java 8.
RELNOTES: config_feature_flag's default_value is optional. It is
only an error to have a config_feature_flag with no default_value
if that config_feature_flag has not been set in the configuration
it is being evaluated in.
PiperOrigin-RevId: 178418907
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions