diff --git a/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java b/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java index bb32de77e..f42c76068 100644 --- a/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java +++ b/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java @@ -2876,11 +2876,9 @@ public class PhoneNumberUtil { String possibleCountryIddPrefix = "NonMatch"; if (defaultRegionMetadata != null) { possibleCountryIddPrefix = defaultRegionMetadata.getInternationalPrefix(); - if ( defaultRegionMetadata.getId().equals("RU") && possibleCountryIddPrefix.contains("810")) { - if (new String(fullNumber).startsWith("8108")) { - possibleCountryIddPrefix = "00"; - } - } + if (defaultRegionMetadata.getId().equals("RU") && new String(fullNumber).startsWith("8108")) { + possibleCountryIddPrefix = "00"; + } } CountryCodeSource countryCodeSource =