Make CheckReturnValue errorprone check a warning for unit tests

CredentialManagerPreferenceControllerTest now differs between the
current development branch and internal main, and the
CheckReturnValue errorprone is failing in the branches that use
the code from the development branch. Modifying
CredentialManagerPreferenceControllerTest does not resolve this
because it results in merge conflicts, but making this check a
warning in the development branch will allow the fix to reach all
affected branches.

Fixes: 273833063
Test: m RUN_ERROR_PRONE=true SettingsUnitTests
Change-Id: Ia923f0d988b1428cbb7378f33b4703ed19113dcd
This commit is contained in:
Michael Groover
2023-03-16 11:24:46 -05:00
parent 4d1535441e
commit 38819fd906

View File

@@ -36,6 +36,10 @@ android_test {
// instrumented Settings app.
],
errorprone: {
javacflags: ["-Xep:CheckReturnValue:WARN"]
},
// Include all test java files.
srcs: ["src/**/*.java"],