summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-08-28 14:55:35 -0700
committer Colin Cross <ccross@android.com> 2023-08-29 21:56:01 +0000
commiteb1f79278ada0a19f1990b4f8b8c7e59262480d6 (patch)
tree29543cc0a8a192be7149d6f8d36de66260a35624 /libs/androidfw/ObbFile.cpp
parent63a020ccfbb707f66fe86bf335b7b2e1160dd003 (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 Change-Id: I0ff1ce3200f73c5596e1f06ea653ff397b9024cb Merged-In: I0ff1ce3200f73c5596e1f06ea653ff397b9024cb (cherry picked from commit 8cb2bb51f0b9b6766b8b62001f29d50d918d45ec)
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions