diff options
author | Jeff Gaston <jeffrygaston@google.com> | 2019-10-22 16:30:38 -0400 |
---|---|---|
committer | Jeff Gaston <jeffrygaston@google.com> | 2019-11-27 17:18:22 -0500 |
commit | a08395de66090393b36a606c4145dc386a96cfff (patch) | |
tree | 6e0467084b0e97b61fb16aea15b719cc2d6c5031 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 4d1971e8807fbb285d61b89931f9362b8bbbdc57 (diff) |
Replacing @Nullable/@NonNull with @RecentlyNullable/@RecentlyNonNull in non-android APIs
because this causes callers of those APIs to only receive warnings from kotlinc rather than errors.
Bug: 141748642
Test: m api-stubs-docs && \
cd out/target/common && mv docs docs-new && unzip docs-new/api-stubs-docs-stubs.srcjar -d docs-new/api-stubs-docs-stubs.srcjar_unzipped && cd - && \
cd frameworks/base && git checkout HEAD^ && cd - && m api-stubs-docs && \
cd out/target/common && mv docs docs-old && unzip docs-old/api-stubs-docs-stubs.srcjar -d docs-old/api-stubs-docs-stubs.srcjar_unzipped && \
diff -x "*.html" -r docs-old/ docs-new | grep -v "^diff" | sed 's/^</>/' | grep '^>' | sed 's|androidx.annotation.Recently|android.annotation.|g' | sort | uniq -c | grep "^ *1 " # And notice that there aren't any copies of "androidx.annotation.Recently" without a matching instance of "android.annotation." or vice versa
Test: m api-stubs-docs && out/target/common/docs && unzip api-stubs-docs-stubs.srcjar -d unzipped && cd unzipped && \
grep -r "@.*NonNull" java | grep -v Recently && \
grep -r "@.*Nullable" java | grep -v Recently
Change-Id: I156f1788880958cf3d1f030da829e76cefd6072e
Merged-In: I156f1788880958cf3d1f030da829e76cefd6072e
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions