Skip to content

Commit

Permalink
[FLINK-10233][core] Reverse deprecation of ConfigOption#withDescripti…
Browse files Browse the repository at this point in the history
…on(String)
  • Loading branch information
zentol committed Aug 28, 2018
1 parent 7c69f3d commit d2e4676
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,9 @@ public ConfigOption<T> withDeprecatedKeys(String... deprecatedKeys) {
*
* @param description The description for this option.
* @return A new config option, with given description.
* @deprecated use version with {@link Description}
*/
@Deprecated
public ConfigOption<T> withDescription(final String description) {
return new ConfigOption<>(key, description, defaultValue, deprecatedKeys);
return withDescription(Description.builder().text(description).build());
}

/**
Expand Down

0 comments on commit d2e4676

Please sign in to comment.