mirror of
https://github.com/google/nomulus.git
synced 2025-07-21 18:26:12 +02:00
Rename various fields and classes after migration (#1784)
Also fixed a bug introduced in #1785 where identity checked were performed instead of equality. This resulted in two sets containing the same elements not being regarded as equal and subsequent DNS updated being unnecessarily enqueued.
This commit is contained in:
parent
341a6e84cf
commit
ff38d8fc2c
107 changed files with 528 additions and 573 deletions
|
@ -61,14 +61,12 @@ public final class DomainNameUtils {
|
|||
* google.registry.model.tld.Registries#findTldForName(InternetDomainName)
|
||||
* Registries#findTldForName}, which will work on hostnames in addition to domains.
|
||||
*
|
||||
* @param fullyQualifiedDomainName must be a punycode SLD (not a host or unicode)
|
||||
* @param domainName must be a punycode SLD (not a host or unicode)
|
||||
* @throws IllegalArgumentException if there is no TLD
|
||||
*/
|
||||
public static String getTldFromDomainName(String fullyQualifiedDomainName) {
|
||||
checkArgument(
|
||||
!Strings.isNullOrEmpty(fullyQualifiedDomainName),
|
||||
"fullyQualifiedDomainName cannot be null or empty");
|
||||
return getTldFromDomainName(InternetDomainName.from(fullyQualifiedDomainName));
|
||||
public static String getTldFromDomainName(String domainName) {
|
||||
checkArgument(!Strings.isNullOrEmpty(domainName), "domainName cannot be null or empty");
|
||||
return getTldFromDomainName(InternetDomainName.from(domainName));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue