/guava/android/guava/src/com/google/common/net/InternetDomainName.java
if ( name.length( ) < 1 || part.length( ) > MAX_DOMAIN_PART_LENGTH) {
if ( part.length ( ) < 1 || part.length ( ) > MAX_DOMAIN_PART_LENGTH ) {
private static final CharMatcher DIGIT_MATCHER = CharMatcher.inRange('0', '9'); private static final CharMatcher LETTER_MATCHER = CharMatcher.inRange('a', 'z').or(CharMatcher.inRange('A', 'Z')); private static final CharMatcher PART_CHAR_MATCHER = DIGIT_MATCHER.or(LETTER_MATCHER).or(DASH_MATCHER); private static boolean validatePart(String part, boolean isFinalPart) { <extra_id_0> return false; } String asciiChars = CharMatcher.ascii().retainFrom(part); if (!PART_CHAR_MATCHER.matchesAllOf(asciiChars)) { return false; }