Index: build/config/android/rules.gni |
diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni |
index 63d0b184e09f65246500b17044544d1d0079b083..704ca6dbbd57014feb4941ff4290f9f8b891a88b 100644 |
--- a/build/config/android/rules.gni |
+++ b/build/config/android/rules.gni |
@@ -1885,7 +1885,10 @@ template("instrumentation_test_apk") { |
"//tools/android/forwarder2", |
"//tools/android/md5sum", |
] |
- run_findbugs = false |
+ |
+ run_findbugs = |
+ defined(invoker.run_findbugs) && invoker.run_findbugs && |
+ (defined(invoker.java_files) || defined(invoker.DEPRECATED_java_in_dir)) |
} |
group(target_name) { |