aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorKevin Jin <kjin@google.com>2015-02-18 17:45:46 -0800
committerKevin Jin <kjin@google.com>2015-02-18 18:59:21 -0800
commite66c531bb9bd973a8dfd76cf5c404b5dc03facfe (patch)
tree0b2ba55e699d4684fc85e73225acc09480a9a51a /build.gradle
parentd5530946c73be82eea484ce9e5a6a88abab4e308 (diff)
downloaddroiddriver-e66c531bb9bd973a8dfd76cf5c404b5dc03facfe.tar.gz
Fix the remaining JavaDoc warnings
We should have a consistent style for JavaDoc, i.e. @param for all parameters of a method, or none. And a consistent format. I used "Reformat code" from Android Studio on some files I touched in this cl. Now the consistency is only on a per-file basis. We may apply it incrementally. Change-Id: Icfe2ef223d93e78e42b400a1dd2b50a0ef19a13a
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index 5b20679..47af871 100644
--- a/build.gradle
+++ b/build.gradle
@@ -107,7 +107,11 @@ task sourcesJar(type: Jar) {
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
- if (System.getProperties().get('java.specification.version') == '1.8') {
+ if (System.getProperty('java.specification.version') == '1.8') {
+ // '-quiet' is not related to -Xdoclint. In fact it is default for the Javadoc task.
+ // It is needed here because of a Gradle bug: addStringOption(String option) does not work.
+ // addStringOption(String option, String value) adds both option and value to the generated
+ // file javadoc.options, and value must be a valid javadoc command line option.
options.addStringOption('Xdoclint:all,-missing', '-quiet')
}
}