You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by er...@apache.org on 2020/07/08 19:52:09 UTC

[lucene-solr] branch master updated: LUCENE-9411: Fail complation on warnings, 9x gradle-only. Explicitly list warnings to check for

This is an automated email from the ASF dual-hosted git repository.

erick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 294caa8  LUCENE-9411: Fail complation on warnings, 9x gradle-only. Explicitly list warnings to check for
294caa8 is described below

commit 294caa81540f169d537a98c952a39d124db102b2
Author: Erick Erickson <Er...@gmail.com>
AuthorDate: Wed Jul 8 15:51:59 2020 -0400

    LUCENE-9411: Fail complation on warnings, 9x gradle-only. Explicitly list warnings to check for
---
 gradle/defaults-java.gradle | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/gradle/defaults-java.gradle b/gradle/defaults-java.gradle
index 4d0fae7..d911012 100644
--- a/gradle/defaults-java.gradle
+++ b/gradle/defaults-java.gradle
@@ -25,10 +25,24 @@ allprojects {
     tasks.withType(JavaCompile) {
       options.encoding = "UTF-8"
       options.compilerArgs += [
-        "-Xlint",
         "-Xlint:-deprecation",
         "-Xlint:-serial",
-
+        "-Xlint:cast",
+        "-Xlint:classfile",
+        "-Xlint:dep-ann",
+        "-Xlint:divzero",
+        "-Xlint:empty",
+        "-Xlint:fallthrough",
+        "-Xlint:finally",
+        "-Xlint:options",
+        "-Xlint:overrides",
+        "-Xlint:path",
+        "-Xlint:processing",
+        "-Xlint:rawtypes",
+        "-Xlint:static",
+        "-Xlint:try",
+        "-Xlint:unchecked",
+        "-Xlint:varargs",
         "-Xdoclint:all/protected",
         "-Xdoclint:-missing",
         "-Xdoclint:-accessibility",