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

Commit 3a8254ad authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Change Font.Builder#build return type from @Nullable to @NonNull

Bug: 124794844
Test: N/A
Change-Id: Ib7a7a4605698dbda7a7f649708964b2b83916354
parent d5621edc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15787,7 +15787,7 @@ package android.graphics.fonts {
    ctor public Font.Builder(@NonNull android.os.ParcelFileDescriptor, @IntRange(from=0) long, @IntRange(from=0xffffffff) long);
    ctor public Font.Builder(@NonNull android.content.res.AssetManager, @NonNull String);
    ctor public Font.Builder(@NonNull android.content.res.Resources, int);
    method @Nullable public android.graphics.fonts.Font build() throws java.io.IOException;
    method @NonNull public android.graphics.fonts.Font build() throws java.io.IOException;
    method @NonNull public android.graphics.fonts.Font.Builder setFontVariationSettings(@Nullable String);
    method @NonNull public android.graphics.fonts.Font.Builder setFontVariationSettings(@Nullable android.graphics.fonts.FontVariationAxis[]);
    method @NonNull public android.graphics.fonts.Font.Builder setSlant(int);
+1 −1
Original line number Diff line number Diff line
@@ -356,7 +356,7 @@ public final class Font {
         * Creates the font based on the configured values.
         * @return the Font object
         */
        public @Nullable Font build() throws IOException {
        public @NonNull Font build() throws IOException {
            if (mException != null) {
                throw new IOException("Failed to read font contents", mException);
            }