diff options
author | Liam Miller-Cushon <cushon@google.com> | 2017-01-16 21:40:13 +0000 |
---|---|---|
committer | Vladimir Moskva <vladmos@google.com> | 2017-01-17 12:15:21 +0000 |
commit | 14d952232b0284fecc898a6d5cb1bf3467aff493 (patch) | |
tree | ee9d9957e9cd4fd6b38c7c3ccfcfea9fed870d8a /src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java | |
parent | 35a37e0429add201342dd1d005bc9286c53c02c3 (diff) |
Remove --javawarn
Resolves #2363
RELNOTES: Remove support for --javawarn; use e.g. --javacopt=-Xlint:all instead
--
PiperOrigin-RevId: 144652008
MOS_MIGRATED_REVID=144652008
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java b/src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java index 8924e00701..e1bf37b165 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java @@ -26,7 +26,6 @@ import com.google.devtools.build.lib.cmdline.Label; import com.google.devtools.build.lib.cmdline.LabelSyntaxException; import com.google.devtools.build.lib.rules.java.JavaConfiguration.JavaClasspathMode; import com.google.devtools.build.lib.rules.java.JavaConfiguration.JavaOptimizationMode; -import com.google.devtools.common.options.Converters.StringSetConverter; import com.google.devtools.common.options.EnumConverter; import com.google.devtools.common.options.Option; import com.google.devtools.common.options.TriState; @@ -41,43 +40,6 @@ import java.util.Set; */ public class JavaOptions extends FragmentOptions { - /** - * Converter for the --javawarn option. - */ - public static class JavacWarnConverter extends StringSetConverter { - public JavacWarnConverter() { - super("all", - "cast", - "-cast", - "deprecation", - "-deprecation", - "divzero", - "-divzero", - "empty", - "-empty", - "fallthrough", - "-fallthrough", - "finally", - "-finally", - "none", - "options", - "-options", - "overrides", - "-overrides", - "path", - "-path", - "processing", - "-processing", - "rawtypes", - "-rawtypes", - "serial", - "-serial", - "unchecked", - "-unchecked" - ); - } - } - /** Converter for the --java_classpath option. */ public static class JavaClasspathModeConverter extends EnumConverter<JavaClasspathMode> { public JavaClasspathModeConverter() { @@ -140,14 +102,6 @@ public class JavaOptions extends FragmentOptions { + "VM startup options of each java_binary target.") public List<String> jvmOpts; - @Option(name = "javawarn", - converter = JavacWarnConverter.class, - defaultValue = "", - category = "flags", - allowMultiple = true, - help = "Additional javac warnings to enable when compiling Java source files.") - public List<String> javaWarns; - @Option(name = "use_ijars", defaultValue = "true", category = "strategy", |