Fixed
Status Update
Comments
al...@google.com <al...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit cbeebee50711eaf12148115062c200755c68183e
Author: Alan Viverette <alanv@google.com>
Date: Thu Apr 29 14:59:11 2021
Backport Objects.requireNonNull
Relnote: "Backport Objects.requireNonNull()"
Fixes: 179904366
Test: ObjectsCompatTest
Change-Id: I27db535da3a0171d221bd781337f20f2b4a61fbd
M core/core/api/current.txt
M core/core/api/public_plus_experimental_current.txt
M core/core/api/restricted_current.txt
M core/core/src/androidTest/java/androidx/core/util/ObjectsCompatTest.java
M core/core/src/main/java/androidx/core/util/ObjectsCompat.java
https://android-review.googlesource.com/1691187
Branch: androidx-main
commit cbeebee50711eaf12148115062c200755c68183e
Author: Alan Viverette <alanv@google.com>
Date: Thu Apr 29 14:59:11 2021
Backport Objects.requireNonNull
Relnote: "Backport Objects.requireNonNull()"
Fixes: 179904366
Test: ObjectsCompatTest
Change-Id: I27db535da3a0171d221bd781337f20f2b4a61fbd
M core/core/api/current.txt
M core/core/api/public_plus_experimental_current.txt
M core/core/api/restricted_current.txt
M core/core/src/androidTest/java/androidx/core/util/ObjectsCompatTest.java
M core/core/src/main/java/androidx/core/util/ObjectsCompat.java
pa...@126.com <pa...@126.com> #3
when enableR8,the code like if(x == null ) transfers to Objects.requireNonNull ,and throw nullpointer crash,how to slove this
Description
We should replace all of our null checks with the "official"
Objects.requireNonNull
which throws the correct exception.