Repository: flink Updated Branches: refs/heads/release-1.5 9f0295aa3 -> a269f8519
[hotfix] [core] Suppress unused warning config options only used in shell scripts and doc generation. Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/e9e13dec Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/e9e13dec Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/e9e13dec Branch: refs/heads/release-1.5 Commit: e9e13dec10f1a1ee57c46719d758885c4f33dcf3 Parents: 9f0295a Author: Stephan Ewen <[email protected]> Authored: Tue Feb 27 16:53:03 2018 +0100 Committer: Stephan Ewen <[email protected]> Committed: Tue Feb 27 17:18:31 2018 +0100 ---------------------------------------------------------------------- .../org/apache/flink/configuration/CoreOptions.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/e9e13dec/flink-core/src/main/java/org/apache/flink/configuration/CoreOptions.java ---------------------------------------------------------------------- diff --git a/flink-core/src/main/java/org/apache/flink/configuration/CoreOptions.java b/flink-core/src/main/java/org/apache/flink/configuration/CoreOptions.java index ccce0ab..dc544e0 100644 --- a/flink-core/src/main/java/org/apache/flink/configuration/CoreOptions.java +++ b/flink-core/src/main/java/org/apache/flink/configuration/CoreOptions.java @@ -137,17 +137,32 @@ public class CoreOptions { .key("env.java.opts.taskmanager") .defaultValue(""); + /** + * This options is here only for documentation generation, it is only + * evaluated in the shell scripts. + */ + @SuppressWarnings("unused") public static final ConfigOption<String> FLINK_LOG_DIR = ConfigOptions .key("env.log.dir") .noDefaultValue() .withDescription("Defines the directory where the Flink logs are saved. It has to be an absolute path." + " (Defaults to the log directory under Flinkâs home)"); + /** + * This options is here only for documentation generation, it is only + * evaluated in the shell scripts. + */ + @SuppressWarnings("unused") public static final ConfigOption<Integer> FLINK_LOG_MAX = ConfigOptions .key("env.log.max") .defaultValue(5) .withDescription("The maximum number of old log files to keep."); + /** + * This options is here only for documentation generation, it is only + * evaluated in the shell scripts. + */ + @SuppressWarnings("unused") public static final ConfigOption<String> FLINK_SSH_OPTIONS = ConfigOptions .key("env.ssh.opts") .noDefaultValue()
