Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4c2f9ba authored by John Reck's avatar John Reck
Browse files

Fix nullability annotation

As mentioned on the javadoc, null is a possible return value.
Thus, @NonNull -> @Nullable

Fixes: 296547113
Test: make
Change-Id: I40821adb1ca5b6bb40e9e0b4a1ad7d011272b174
parent 9f09ebb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15083,7 +15083,7 @@ package android.graphics {
    method public int getByteCount();
    method @NonNull public android.graphics.Color getColor(int, int);
    method @Nullable public android.graphics.ColorSpace getColorSpace();
    method @NonNull public android.graphics.Bitmap.Config getConfig();
    method @Nullable public android.graphics.Bitmap.Config getConfig();
    method public int getDensity();
    method @Nullable public android.graphics.Gainmap getGainmap();
    method public int getGenerationId();
+1 −1
Original line number Diff line number Diff line
@@ -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!");