You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2018/08/28 17:23:28 UTC
[flink] branch master updated: [FLINK-10233][core] Reverse
deprecation of ConfigOption#withDescription(String)
This is an automated email from the ASF dual-hosted git repository.
chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new d2e4676 [FLINK-10233][core] Reverse deprecation of ConfigOption#withDescription(String)
d2e4676 is described below
commit d2e46762f88f2cabdc48178dffe342c7e8a1d410
Author: zentol <ch...@apache.org>
AuthorDate: Tue Aug 28 10:45:54 2018 +0200
[FLINK-10233][core] Reverse deprecation of ConfigOption#withDescription(String)
---
.../src/main/java/org/apache/flink/configuration/ConfigOption.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/flink-core/src/main/java/org/apache/flink/configuration/ConfigOption.java b/flink-core/src/main/java/org/apache/flink/configuration/ConfigOption.java
index be242f5..9e6fc32 100644
--- a/flink-core/src/main/java/org/apache/flink/configuration/ConfigOption.java
+++ b/flink-core/src/main/java/org/apache/flink/configuration/ConfigOption.java
@@ -125,11 +125,9 @@ public class ConfigOption<T> {
*
* @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());
}
/**