Fix nullability annotations in InsertGesture API

Bug: 239783077
Test: none
Change-Id: Iacc8bb3442100604e7d745755873950b5926a9ac
This commit is contained in:
Justin Ghan
2022-09-22 09:35:29 -07:00
parent 7144d64e3a
commit 3af873ba1c
2 changed files with 4 additions and 4 deletions

View File

@@ -53519,8 +53519,8 @@ package android.view.inputmethod {
public final class InsertGesture extends android.view.inputmethod.HandwritingGesture implements android.os.Parcelable {
method public int describeContents();
method @Nullable public android.graphics.PointF getInsertionPoint();
method @Nullable public String getTextToInsert();
method @NonNull public android.graphics.PointF getInsertionPoint();
method @NonNull public String getTextToInsert();
method public void writeToParcel(@NonNull android.os.Parcel, int);
field @NonNull public static final android.os.Parcelable.Creator<android.view.inputmethod.InsertGesture> CREATOR;
}

View File

@@ -53,7 +53,7 @@ public final class InsertGesture extends HandwritingGesture implements Parcelabl
}
/** Returns the text that will be inserted at {@link #getInsertionPoint()} **/
@Nullable
@NonNull
public String getTextToInsert() {
return mTextToInsert;
}
@@ -62,7 +62,7 @@ public final class InsertGesture extends HandwritingGesture implements Parcelabl
* Returns the insertion point {@link PointF} (in screen coordinates) where
* {@link #getTextToInsert()} will be inserted.
*/
@Nullable
@NonNull
public PointF getInsertionPoint() {
return mPoint;
}