This is an automated email from the ASF dual-hosted git repository.
vorburger pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/develop by this push:
new 117398b FINERACT-959 Tighten javac compilerArgs, turn more warnings
into errors (and fix related problems)
117398b is described below
commit 117398b765c43733de508f17b5fa5fc781efa842
Author: nnatarajan <[email protected]>
AuthorDate: Mon Jun 8 18:55:23 2020 -0600
FINERACT-959 Tighten javac compilerArgs, turn more warnings into errors
(and fix related problems)
---
fineract-provider/build.gradle | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/fineract-provider/build.gradle b/fineract-provider/build.gradle
index f10c246..440f8a6 100644
--- a/fineract-provider/build.gradle
+++ b/fineract-provider/build.gradle
@@ -298,7 +298,14 @@ configurations {
}
tasks.withType(JavaCompile) {
- options.compilerArgs += ["-Xlint:unchecked","-Xlint:cast","-Werror"] //
TODO FINERACT-959 (gradually) enable -Xlint:all (see "javac -help -X")
+ options.compilerArgs +=
["-Xlint:unchecked","-Xlint:cast","-Xlint:auxiliaryclass","-Xlint:deprecation",
+
"-Xlint:dep-ann","-Xlint:divzero","-Xlint:empty","-Xlint:exports","-Xlint:fallthrough",
+
"-Xlint:finally","-Xlint:module","-Xlint:opens","-Xlint:options","-Xlint:overloads",
+
"-Xlint:overrides","-Xlint:path","-Xlint:processing","-Xlint:removal",
+
"-Xlint:requires-automatic","-Xlint:requires-transitive-automatic","-Xlint:try",
+ "-Xlint:varargs","-Xlint:preview","-Werror"]
+ // TODO FINERACT-959 (gradually) enable -Xlint:all
(see "javac -help -X")
+
options.deprecation = true
options.errorprone {
disableWarningsInGeneratedCode = true