Repository: flink
Updated Branches:
  refs/heads/master 56c756040 -> 59fb56bc8


[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/70de6da4
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/70de6da4
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/70de6da4

Branch: refs/heads/master
Commit: 70de6da4660f09fe7e71afc7b05da15ee85da5ae
Parents: 56c7560
Author: Stephan Ewen <[email protected]>
Authored: Tue Feb 27 16:53:03 2018 +0100
Committer: Stephan Ewen <[email protected]>
Committed: Tue Feb 27 17:06:02 2018 +0100

----------------------------------------------------------------------
 .../org/apache/flink/configuration/CoreOptions.java  | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/70de6da4/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()

Reply via email to