lixiaobao created FLINK-22850: --------------------------------- Summary: 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.12.4, 1.12.3, 1.13.0, 1.11.1, 1.10.1 Reporter: lixiaobao Fix For: 1.13.0
{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)