summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-08-28 14:55:35 -0700
committer Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2023-09-07 17:18:51 +0000
commit4fa24cbeb09e920caeece7aa5c3a8b2248599e49 (patch)
tree8ea26b112241bd74540b9715bed495e97e861cd9 /libs/androidfw/AttributeResolution.cpp
parent43263353d8234dc826b942732719c7825d2d77a8 (diff)
Fix tests broken by @NonNull annotation fix
b/294110802 fixed the @NonNull annotation so that it was visible to kotlin when applied to methods outside the current build module. This caused kotlin to insert more null checks, which broke some tests that use mockito's when/thenReturn syntax, as that calls the method and mockito may return null where kotlin doesn't expect it. Fix them by switching to the doReturn/when syntax, which doesn't call the method. Bug: 294110802 Bug: 297916459 Bug: 297919489 Test: atest PackageManagerServiceTests FrameworksMockingServicesTests (cherry picked from commit 8cb2bb51f0b9b6766b8b62001f29d50d918d45ec) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:eb1f79278ada0a19f1990b4f8b8c7e59262480d6) Merged-In: I0ff1ce3200f73c5596e1f06ea653ff397b9024cb Change-Id: I0ff1ce3200f73c5596e1f06ea653ff397b9024cb
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions