Browse Source

Fix JavaDoc to comply with Java 8

pull/744/head
roes 11 years ago
parent
commit
b48b442890
3 changed files with 6 additions and 6 deletions
  1. +1
    -1
      java/carrier/src/com/google/i18n/phonenumbers/PhoneNumberToCarrierMapper.java
  2. +1
    -1
      java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/PrefixTimeZonesMap.java
  3. +4
    -4
      java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java

+ 1
- 1
java/carrier/src/com/google/i18n/phonenumbers/PhoneNumberToCarrierMapper.java View File

@ -100,7 +100,7 @@ public class PhoneNumberToCarrierMapper {
* Gets the name of the carrier for the given phone number only when it is 'safe' to display to
* users. A carrier name is considered safe if the number is valid and for a region that doesn't
* support
* {@linkplain http://en.wikipedia.org/wiki/Mobile_number_portability mobile number portability}.
* <a href="http://en.wikipedia.org/wiki/Mobile_number_portability">mobile number portability</a>.
*
* @param number the phone number for which we want to get a carrier name
* @param languageCode the language code in which the name should be written


+ 1
- 1
java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/PrefixTimeZonesMap.java View File

@ -37,7 +37,7 @@ public class PrefixTimeZonesMap implements Externalizable {
private static final String RAW_STRING_TIMEZONES_SEPARATOR = "&";
/**
* Creates a {@link PrefixTimeZoneMap} initialized with {@code sortedPrefixTimeZoneMap}. Note
* Creates a {@link PrefixTimeZonesMap} initialized with {@code sortedPrefixTimeZoneMap}. Note
* that the underlying implementation of this method is expensive thus should not be called by
* time-critical applications.
*


+ 4
- 4
java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java View File

@ -811,7 +811,7 @@ public class PhoneNumberUtil {
* works in such a way that the resultant subscriber number should be diallable, at least on some
* devices. An example of how this could be used:
*
* <pre>
* <pre>{@code
* PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
* PhoneNumber number = phoneUtil.parse("16502530000", "US");
* String nationalSignificantNumber = phoneUtil.getNationalSignificantNumber(number);
@ -826,7 +826,7 @@ public class PhoneNumberUtil {
* areaCode = "";
* subscriberNumber = nationalSignificantNumber;
* }
* </pre>
* }</pre>
*
* N.B.: area code is a very ambiguous concept, so the I18N team generally recommends against
* using it for most purposes, but recommends using the more general {@code national_number}
@ -871,7 +871,7 @@ public class PhoneNumberUtil {
* number is formatted in the international format, if there is a subscriber number part that
* follows. An example of how this could be used:
*
* <pre>
* <pre>{@code
* PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
* PhoneNumber number = phoneUtil.parse("18002530000", "US");
* String nationalSignificantNumber = phoneUtil.getNationalSignificantNumber(number);
@ -887,7 +887,7 @@ public class PhoneNumberUtil {
* nationalDestinationCode = "";
* subscriberNumber = nationalSignificantNumber;
* }
* </pre>
* }</pre>
*
* Refer to the unittests to see the difference between this function and
* {@link #getLengthOfGeographicalAreaCode}.


Loading…
Cancel
Save