From 3a8254ad38a8b3c5fd14334afb2b17e6935c1b99 Mon Sep 17 00:00:00 2001 From: Seigo Nonaka Date: Tue, 12 Mar 2019 13:18:17 -0700 Subject: Change Font.Builder#build return type from @Nullable to @NonNull Bug: 124794844 Test: N/A Change-Id: Ib7a7a4605698dbda7a7f649708964b2b83916354 --- graphics/java/android/graphics/fonts/Font.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/java') diff --git a/graphics/java/android/graphics/fonts/Font.java b/graphics/java/android/graphics/fonts/Font.java index f715f43344d3..b4f88e4f79b9 100644 --- a/graphics/java/android/graphics/fonts/Font.java +++ b/graphics/java/android/graphics/fonts/Font.java @@ -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); } -- cgit v1.2.3-59-g8ed1b