summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Justin Ghan <justinghan@google.com> 2022-09-22 09:35:29 -0700
committer Justin Ghan <justinghan@google.com> 2022-09-22 13:59:01 -0700
commit3af873ba1ca652d9bf9283f641fdc1d3ba5fc9c7 (patch)
tree69b5e0606f606a91ecac126754a738eb1dc85955
parent7144d64e3a1b858f93f895b7da1e9ad7adf985a3 (diff)
Fix nullability annotations in InsertGesture API
Bug: 239783077 Test: none Change-Id: Iacc8bb3442100604e7d745755873950b5926a9ac
-rw-r--r--core/api/current.txt4
-rw-r--r--core/java/android/view/inputmethod/InsertGesture.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/core/api/current.txt b/core/api/current.txt
index 19713cfebf6c..45afdc115606 100644
--- a/core/api/current.txt
+++ b/core/api/current.txt
@@ -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;
}
diff --git a/core/java/android/view/inputmethod/InsertGesture.java b/core/java/android/view/inputmethod/InsertGesture.java
index 8b8359ea5cb2..9f0328909190 100644
--- a/core/java/android/view/inputmethod/InsertGesture.java
+++ b/core/java/android/view/inputmethod/InsertGesture.java
@@ -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;
}