[
https://issues.apache.org/jira/browse/FLINK-22850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17355632#comment-17355632
]
lixiaobao edited comment on FLINK-22850 at 6/2/21, 11:55 AM:
-------------------------------------------------------------
Replaced Deprecatedmethods with new methods。 I provided a PR to fix it.
was (Author: q977734161):
Replaced Deprecatedmethods with new methods。
> 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)