summaryrefslogtreecommitdiff
path: root/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/AsYouTypeFormatter.java
diff options
context:
space:
mode:
authorArtur Satayev <satayev@google.com>2019-12-10 12:14:03 +0000
committerArtur Satayev <satayev@google.com>2019-12-10 13:20:51 +0000
commit0f801813d172f2bdcf7461e5c25d61c5cbb19cd8 (patch)
tree2dd13868712e73ee5286ce1414799a97cafbca12 /repackaged/libphonenumber/src/com/android/i18n/phonenumbers/AsYouTypeFormatter.java
parentc0a1cf3b97a416890442825fc3e78da56dac0756 (diff)
downloadlibphonenumber-0f801813d172f2bdcf7461e5c25d61c5cbb19cd8.tar.gz
Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I843f94760157612715b7c34014026f77d64e0087
Diffstat (limited to 'repackaged/libphonenumber/src/com/android/i18n/phonenumbers/AsYouTypeFormatter.java')
-rw-r--r--repackaged/libphonenumber/src/com/android/i18n/phonenumbers/AsYouTypeFormatter.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/AsYouTypeFormatter.java b/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/AsYouTypeFormatter.java
index 0bde5fb6..68744b56 100644
--- a/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/AsYouTypeFormatter.java
+++ b/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/AsYouTypeFormatter.java
@@ -255,7 +255,7 @@ public class AsYouTypeFormatter {
/**
* Clears the internal state of the formatter, so it can be reused.
*/
- @dalvik.annotation.compat.UnsupportedAppUsage
+ @android.compat.annotation.UnsupportedAppUsage
public void clear() {
currentOutput = "";
accruedInput.setLength(0);
@@ -288,7 +288,7 @@ public class AsYouTypeFormatter {
* be shown as they are.
* @return the partially formatted phone number.
*/
- @dalvik.annotation.compat.UnsupportedAppUsage
+ @android.compat.annotation.UnsupportedAppUsage
public String inputDigit(char nextChar) {
currentOutput = inputDigitWithOptionToRememberPosition(nextChar, false);
return currentOutput;
@@ -300,7 +300,7 @@ public class AsYouTypeFormatter {
* position will be automatically adjusted if additional formatting characters are later
* inserted/removed in front of {@code nextChar}.
*/
- @dalvik.annotation.compat.UnsupportedAppUsage
+ @android.compat.annotation.UnsupportedAppUsage
public String inputDigitAndRememberPosition(char nextChar) {
currentOutput = inputDigitWithOptionToRememberPosition(nextChar, true);
return currentOutput;
@@ -453,7 +453,7 @@ public class AsYouTypeFormatter {
* Returns the current position in the partially formatted phone number of the character which was
* previously passed in as the parameter of {@link #inputDigitAndRememberPosition}.
*/
- @dalvik.annotation.compat.UnsupportedAppUsage
+ @android.compat.annotation.UnsupportedAppUsage
public int getRememberedPosition() {
if (!ableToFormat) {
return originalPosition;