diff options
| author | 2023-09-05 16:39:14 -0400 | |
|---|---|---|
| committer | 2023-09-05 17:42:18 -0400 | |
| commit | a4c2f9badb21180282596ac9730d4777f65e4b4b (patch) | |
| tree | 714ce4c34be9f7e60a51907b23234ecf8c813a9c /graphics/java/android | |
| parent | 9f09ebb33ff74641a0b1e72a7aa6fa5f8e7b1a9c (diff) | |
Fix nullability annotation
As mentioned on the javadoc, null is a possible return value.
Thus, @NonNull -> @Nullable
Fixes: 296547113
Test: make
Change-Id: I40821adb1ca5b6bb40e9e0b4a1ad7d011272b174
Diffstat (limited to 'graphics/java/android')
| -rw-r--r-- | graphics/java/android/graphics/Bitmap.java | 2 |
1 files changed, 1 insertions, 1 deletions
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!"); |