Merge "Fix nullability annotations in InsertGesture API"

This commit is contained in:
Justin Ghan
2022-09-26 16:15:21 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 4 deletions

View File

@@ -53544,8 +53544,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;
}