From 86f85953cb642eadcb631f85e09e7139f8bc6cb6 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Tue, 28 Feb 2023 18:25:22 +0000 Subject: [PATCH] Update Javadoc to clarify format for country ISO. Country ISO must be in upper case; clarifying in the docs. Test: Docs only change. Fixes: 151593921 Change-Id: Ie0922dcaabcaad01f55cba7467f894179a9013f4 --- telephony/java/android/telephony/PhoneNumberUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telephony/java/android/telephony/PhoneNumberUtils.java b/telephony/java/android/telephony/PhoneNumberUtils.java index b9008c4ecd814..788d0e88170d8 100644 --- a/telephony/java/android/telephony/PhoneNumberUtils.java +++ b/telephony/java/android/telephony/PhoneNumberUtils.java @@ -1526,7 +1526,7 @@ public class PhoneNumberUtils { * Formats the specified {@code phoneNumber} to the E.164 representation. * * @param phoneNumber the phone number to format. - * @param defaultCountryIso the ISO 3166-1 two letters country code. + * @param defaultCountryIso the ISO 3166-1 two letters country code in UPPER CASE. * @return the E.164 representation, or null if the given phone number is not valid. */ public static String formatNumberToE164(String phoneNumber, String defaultCountryIso) { @@ -1537,7 +1537,7 @@ public class PhoneNumberUtils { * Formats the specified {@code phoneNumber} to the RFC3966 representation. * * @param phoneNumber the phone number to format. - * @param defaultCountryIso the ISO 3166-1 two letters country code. + * @param defaultCountryIso the ISO 3166-1 two letters country code in UPPER CASE. * @return the RFC3966 representation, or null if the given phone number is not valid. */ public static String formatNumberToRFC3966(String phoneNumber, String defaultCountryIso) {