Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-22850

org.apache.flink.configuration.ConfigOptions.defaultValue() and noDefaultValue() is Deprecated.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Staged
    • 1.10.1, 1.11.1, 1.13.0, 1.12.3, 1.12.4
    • 1.13.0
    • API / Core

    Description

      //代码占位符
      @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);
      }
      

      The method is marked as Deprecated, shoud define the type explicitly first with one of the intType(), stringType(), etc

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              q977734161 lixiaobao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified