Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Emily Jiang <emijiang6@googlemail.com>
  • Loading branch information
Emily-Jiang committed Oct 24, 2020
1 parent f996b6c commit 41b0470
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,17 @@
String name() default "";

/**
* The default value if the configured property does not exist. This value acts as a configure source with the lowest ordinal.
* The default value if the configured property does not exist. This value acts as a configure source with the
* lowest ordinal.
* <p>
* If the target Type is not String, a proper {@link org.eclipse.microprofile.config.spi.Converter} will get
* applied.
* applied.
*
* Empty string as the default value will be ignored, which is same as not setting the default value. That means
* that any default value string should follow the formatting rules of the registered Converters.
*
* If a property has been emptied by a config source with a higher ordinal by setting an empty configuration value or by using a value causing the used converter returning {@code null}, the default value will not be used.
* If a property has been emptied by a config source with a higher ordinal by setting an empty configuration value
* or by using a value causing the used converter returning {@code null}, the default value will not be used.
*
* @return the default value as a string
*/
Expand Down

0 comments on commit 41b0470

Please sign in to comment.