diff options
author | Jeff Gaston <jeffrygaston@google.com> | 2019-09-20 14:37:00 -0400 |
---|---|---|
committer | Jeff Gaston <jeffrygaston@google.com> | 2019-09-20 16:36:02 -0400 |
commit | 1b51142eb629a300727197f5bebe32c208edb0b6 (patch) | |
tree | 0ec399b309e1c58887c68507dcbb12bb5cc27aea /tests/Codegen/src/com/android/codegentest/SampleDataClassTest.java | |
parent | 9bb86ea9f4f1cd45887c021b1ba7ad028cc2ee4a (diff) |
Replacing @Nullable with @RecentlyNullable for apis annotated since API 28
(temporarily). This causes Metalava to downgrade @Nullable/@NonNull to
@RecentlyNullable/@RecentlyNonNull for now.
This should provide more time to migrate calling code.
Note that we're still checking compatibility against API 29.
Test: m api-stubs-docs # and unzip out/target/common/docs/api-stubs-docs-stubs.srcjar \
and notice that @Nullable/@NonNull are replaced by @RecentlyNullable/@RecentlyNonNull
Test: m checkapi
Test: echo "package samplePackage { public class sampleClass { } }" >> prebuilts/sdk/29/public/api/android.txt \
&& m checkapi # and notice that it correctly reports an error
Bug: 140127380
Change-Id: I616438183ef80d1da7cbbe1c0eb01d1f71eaad8c
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleDataClassTest.java')
0 files changed, 0 insertions, 0 deletions