[
https://issues.apache.org/jira/browse/FLINK-22850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17371835#comment-17371835
]
lixiaobao commented on FLINK-22850:
-----------------------------------
This is the first time to participate. Please have a look.
> org.apache.flink.configuration.ConfigOptions.defaultValue() and
> noDefaultValue() is Deprecated.
> -----------------------------------------------------------------------------------------------
>
> Key: FLINK-22850
> URL: https://issues.apache.org/jira/browse/FLINK-22850
> Project: Flink
> Issue Type: Improvement
> Components: API / Core
> Affects Versions: 1.10.1, 1.11.1, 1.13.0, 1.12.3, 1.12.4
> Reporter: lixiaobao
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.13.0
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> {code:java}
> //代码占位符
> @Deprecated
> public <T> ConfigOption<T> defaultValue(T value) {
> checkNotNull(value);
> return new ConfigOption<>(
> key, value.getClass(), ConfigOption.EMPTY_DESCRIPTION, value,
> false);
> }
> @Deprecated
> public ConfigOption<String> noDefaultValue() {
> return new ConfigOption<>(
> key, String.class, ConfigOption.EMPTY_DESCRIPTION, null, false);
> }
> {code}
> The method is marked as Deprecated, shoud define the type explicitly first
> with one of the intType(), stringType(), etc
--
This message was sent by Atlassian Jira
(v8.3.4#803005)