changeset 10454:1a3f128518cd

8091730: Enable -Xdoclint:all to treat all javadoc warnings as errors Reviewed-by: ckyang, ddhill
author kcr
date Thu, 20 Apr 2017 09:16:08 -0700
parents 641d98b7d772
children df50d26b702f
files build.gradle gradle.properties.template
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Wed Apr 19 11:33:07 2017 -0700
+++ b/build.gradle	Thu Apr 20 09:16:08 2017 -0700
@@ -443,8 +443,8 @@
 defineProperty("LINT", "none")
 ext.IS_LINT = LINT != "none"
 
-defineProperty("DOC_LINT", "none")
-ext.IS_DOC_LINT = DOC_LINT != "none"
+defineProperty("DOC_LINT", "all")
+ext.IS_DOC_LINT = DOC_LINT != ""
 
 // Specifies whether to use the "useDepend" option when compiling Java sources
 defineProperty("USE_DEPEND", "true")
@@ -3512,7 +3512,7 @@
         options.links(JDK_DOCS);
     }
     options.addBooleanOption("XDignore.symbol.file").setValue(true);
-    options.addBooleanOption("Xdoclint:none").setValue(!IS_DOC_LINT);
+    options.addBooleanOption("Xdoclint:${DOC_LINT}").setValue(IS_DOC_LINT);
     options.addBooleanOption("javafx").setValue(true);
     options.addBooleanOption("use").setValue(true);
 
--- a/gradle.properties.template	Wed Apr 19 11:33:07 2017 -0700
+++ b/gradle.properties.template	Thu Apr 20 09:16:08 2017 -0700
@@ -189,6 +189,11 @@
 
 #INCREMENTAL = true
 
+# Specify an option to -Xdoclint, such as "none" or "all" (default),
+# used by the javadoc task.
+
+#DOC_LINT = none
+
 # Specify compiler LINT arguments. These values are defined by the javac compiler. You can
 # study the list of available options here https://docs.oracle.com/javase/7/docs/technotes/tools/solaris/javac.html
 # If LINT is empty, then no warning are generated. Otherwise, LINT should be a space or comma separated