summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Chang <vichang@google.com>2021-05-06 11:44:00 +0100
committerVictor Chang <vichang@google.com>2021-05-06 11:45:18 +0100
commit4271a1d3192e213af0877c6863be6e8609b3e258 (patch)
tree086b00f855f385226022d4945112942404cbd18e
parent963ea00a5b5e12338247df4d42b715c6f151b869 (diff)
downloadicu-4271a1d3192e213af0877c6863be6e8609b3e258.tar.gz
Rename the return type of ExtendedTimeZoneNames.matchName method - part 2
Remove the temporary placeholder method. Bug: 183477238 Test: m droid Change-Id: I7ec9bf4ac4fef4cc65b7008c7fb5e7ec29bdd2b1
-rw-r--r--android_icu4j/api/intra/current.txt1
-rw-r--r--android_icu4j/libcore_bridge/src/java/com/android/icu/text/ExtendedTimeZoneNames.java28
2 files changed, 0 insertions, 29 deletions
diff --git a/android_icu4j/api/intra/current.txt b/android_icu4j/api/intra/current.txt
index 8426b9cc8..cdba19f4d 100644
--- a/android_icu4j/api/intra/current.txt
+++ b/android_icu4j/api/intra/current.txt
@@ -74,7 +74,6 @@ package com.android.icu.text {
method @NonNull public static com.android.icu.text.ExtendedTimeZoneNames getInstance(@NonNull android.icu.util.ULocale);
method @NonNull public android.icu.text.TimeZoneNames getTimeZoneNames();
method @Nullable public com.android.icu.text.ExtendedTimeZoneNames.Match matchName(@NonNull CharSequence, int, @NonNull String);
- method @Nullable public com.android.icu.text.ExtendedTimeZoneNames.Match matchNameToBeRenamed(@NonNull CharSequence, int, @NonNull String);
}
public static final class ExtendedTimeZoneNames.Match {
diff --git a/android_icu4j/libcore_bridge/src/java/com/android/icu/text/ExtendedTimeZoneNames.java b/android_icu4j/libcore_bridge/src/java/com/android/icu/text/ExtendedTimeZoneNames.java
index 46ac47722..2afbd3330 100644
--- a/android_icu4j/libcore_bridge/src/java/com/android/icu/text/ExtendedTimeZoneNames.java
+++ b/android_icu4j/libcore_bridge/src/java/com/android/icu/text/ExtendedTimeZoneNames.java
@@ -152,34 +152,6 @@ public class ExtendedTimeZoneNames {
* @hide
*/
@IntraCoreApi
- public @Nullable Match matchNameToBeRenamed(@NonNull CharSequence text, int start,
- @NonNull String currentTzId) {
- return matchName(text, start, currentTzId);
- }
-
- /**
- * Returns {@link Match} if a time zone name in ICU can be matched against the input
- * CharSequence {@code s}.
- * The best match is found by the following principles:
- * <ul>
- * <li>Length of the matched name. Longest name matched to the given {@code s} has the
- * highest priority.</li>
- * <li>The current time zone and meta zones possible in the current country have higher
- * priority than other zones.</li>
- * <li>If only meta zones are matched, the country/region in the locale is used to select
- * a reference time zone. For example, if the name is "Pacific Standard Time" and the country
- * is US, America/Los_Angeles is returned.</li>
- * </ul>
- *
- * @param text input string to be matched against time zone names in ICU
- * @param start the begin index in the CharSequence {@code s}
- * @param currentTzId the time zone ID prioritized to be matched if multiple time zone IDs can
- * be matched and this is one of the matched IDs.
- * @return null if no match is found
- *
- * @hide
- */
- @IntraCoreApi
public @Nullable Match matchName(@NonNull CharSequence text, int start,
@NonNull String currentTzId) {
currentTzId = TimeZone.getCanonicalID(currentTzId);