From 3ac45547cfccdf3cbfd6ca80e160d25110c99e58 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 19 Dec 2012 14:57:27 -0800 Subject: [PATCH] Update -Xlint compiler warning output Enable output for the compiler warnings that have been eliminated so far. 'rawtypes', 'deprecation', and 'unchecked' remain suppressed until these warnings can be fully eliminated as well. --- build.gradle | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index a0882a2fe0..540694d2ee 100644 --- a/build.gradle +++ b/build.gradle @@ -35,7 +35,26 @@ configure(allprojects) { sourceCompatibility=1.5 targetCompatibility=1.5 - [compileJava, compileTestJava]*.options*.compilerArgs = ["-Xlint:none"] + [compileJava, compileTestJava]*.options*.compilerArgs = [ + "-Xlint:serial", + "-Xlint:varargs", + "-Xlint:cast", + "-Xlint:classfile", + "-Xlint:dep-ann", + "-Xlint:divzero", + "-Xlint:empty", + "-Xlint:finally", + "-Xlint:overrides", + "-Xlint:path", + "-Xlint:processing", + "-Xlint:static", + "-Xlint:try", + "-Xlint:-options", // intentionally disabled + "-Xlint:-fallthrough", // intentionally disabled + "-Xlint:-rawtypes", // TODO enable and fix warnings + "-Xlint:-deprecation", // TODO enable and fix warnings + "-Xlint:-unchecked" // TODO enable and fix warnings + ] sourceSets.test.resources.srcDirs = ["src/test/resources", "src/test/java"]