From a4c2f9badb21180282596ac9730d4777f65e4b4b Mon Sep 17 00:00:00 2001 From: John Reck Date: Tue, 5 Sep 2023 16:39:14 -0400 Subject: Fix nullability annotation As mentioned on the javadoc, null is a possible return value. Thus, @NonNull -> @Nullable Fixes: 296547113 Test: make Change-Id: I40821adb1ca5b6bb40e9e0b4a1ad7d011272b174 --- graphics/java/android/graphics/Bitmap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/java/android') diff --git a/graphics/java/android/graphics/Bitmap.java b/graphics/java/android/graphics/Bitmap.java index a4c655c8ce55..1ff5a3d46f8e 100644 --- a/graphics/java/android/graphics/Bitmap.java +++ b/graphics/java/android/graphics/Bitmap.java @@ -1779,7 +1779,7 @@ public final class Bitmap implements Parcelable { * If the bitmap's internal config is in one of the public formats, return * that config, otherwise return null. */ - @NonNull + @Nullable public final Config getConfig() { if (mRecycled) { Log.w(TAG, "Called getConfig() on a recycle()'d bitmap! This is undefined behavior!"); -- cgit v1.2.3-59-g8ed1b