diff options
author | Mathew Inwood <mathewi@google.com> | 2020-10-21 12:00:41 +0000 |
---|---|---|
committer | Mathew Inwood <mathewi@google.com> | 2020-10-28 15:49:52 +0000 |
commit | d03fa9385a564b0732ef80d8eb79a8840f6ce175 (patch) | |
tree | 86a8b0b3fcc3256397a98426c9bae719876799a2 /repackaged/libphonenumber/src/com/android/i18n/phonenumbers/PhoneNumberMatch.java | |
parent | bba6db0f9e49628c72ad187e822630ec47683cbd (diff) | |
download | libphonenumber-d03fa9385a564b0732ef80d8eb79a8840f6ce175.tar.gz |
Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.
Bug: 170729553
Test: Treehugger
Change-Id: Ida716516dd82c00ceb446b1af07a77b1af36b66c
Diffstat (limited to 'repackaged/libphonenumber/src/com/android/i18n/phonenumbers/PhoneNumberMatch.java')
-rw-r--r-- | repackaged/libphonenumber/src/com/android/i18n/phonenumbers/PhoneNumberMatch.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/PhoneNumberMatch.java b/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/PhoneNumberMatch.java index 5503bd28..ab63f6dc 100644 --- a/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/PhoneNumberMatch.java +++ b/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/PhoneNumberMatch.java @@ -81,25 +81,25 @@ public final class PhoneNumberMatch { } /** Returns the phone number matched by the receiver. */ - @android.compat.annotation.UnsupportedAppUsage + @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) public PhoneNumber number() { return number; } /** Returns the start index of the matched phone number within the searched text. */ - @android.compat.annotation.UnsupportedAppUsage + @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) public int start() { return start; } /** Returns the exclusive end index of the matched phone number within the searched text. */ - @android.compat.annotation.UnsupportedAppUsage + @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) public int end() { return start + rawString.length(); } /** Returns the raw string matched as a phone number in the searched text. */ - @android.compat.annotation.UnsupportedAppUsage + @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) public String rawString() { return rawString; } |