Don't warn in tests for deprecation
This change removes hundreds of lines of useless warnings, since tests must check the continued working of old and deprecated methods. Test: build manually and observe the warnings are gone Flag: EXEMPT test-only Change-Id: Ie50b2f35b09041e8e201b30b1e575e66e045bc44
This commit is contained in:
parent
9373e3442e
commit
87df372535
1 changed files with 6 additions and 0 deletions
|
|
@ -155,6 +155,9 @@ java_defaults {
|
|||
// if sdk_version="" this gets automatically included, but here we need to add manually.
|
||||
"framework-res",
|
||||
],
|
||||
// Tests must check a large number of deprecated methods and warning about it
|
||||
// sends hundreds of warning lines flooding the useful warnings.
|
||||
kotlincflags: ["-Xsuppress-warning=DEPRECATION"],
|
||||
}
|
||||
|
||||
// defaults for tests that need to build against framework-connectivity's @hide APIs, but also
|
||||
|
|
@ -178,6 +181,9 @@ java_defaults {
|
|||
// if sdk_version="" this gets automatically included, but here we need to add manually.
|
||||
"framework-res",
|
||||
],
|
||||
// Tests must check a large number of deprecated methods and warning about it
|
||||
// sends hundreds of warning lines flooding the useful warnings.
|
||||
kotlincflags: ["-Xsuppress-warning=DEPRECATION"],
|
||||
defaults_visibility: ["//packages/modules/Connectivity/tests:__subpackages__"],
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue