[build] Change defaults for Java lints (#4300)

Removes the need to individually suppress the "serial" warning.
This commit is contained in:
Starlight220
2022-06-07 03:06:43 +03:00
committed by GitHub
parent a4787130f4
commit f2d243fa68
16 changed files with 12 additions and 21 deletions

View File

@@ -103,7 +103,11 @@ tasks.withType(JavaCompile).configureEach {
'-encoding',
'UTF8',
"-Werror",
"-Xlint:deprecation,removal",
"-Xlint:all",
// ignore AutoCloseable warnings
"-Xlint:-try",
// ignore missing serialVersionUID warnings
"-Xlint:-serial",
]
}