diff options
-rw-r--r-- | Android.bp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index e00faa7af..b48468020 100644 --- a/Android.bp +++ b/Android.bp @@ -81,6 +81,13 @@ java_library { ], sdk_version: "core_current", + + errorprone: { + javacflags: [ + "-Xep:FormatStringAnnotation:WARN", + "-Xep:NoCanIgnoreReturnValueOnClasses:WARN", + ], + }, } // build dagger2 producers library @@ -199,6 +206,13 @@ java_library_host { "--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", "--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", ], + + errorprone: { + javacflags: [ + "-Xep:FormatStringAnnotation:WARN", + "-Xep:NoCanIgnoreReturnValueOnClasses:WARN", + ], + }, } // Compile dummy implementations of annotations used by dagger2 but not |