Remove TLD parameters from WHOIS command factory methods

The small efficiency increase in not having to look up the TLDs again
did not justify making the externally extensible API more complicated.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=145465971
This commit is contained in:
mcilwain 2017-01-24 14:12:34 -08:00 committed by Ben McIlwain
parent 6c11ac5392
commit 579e4cb74e
5 changed files with 13 additions and 49 deletions

View file

@ -19,18 +19,13 @@ import static google.registry.model.EppResourceUtils.loadByForeignKey;
import com.google.common.base.Optional;
import com.google.common.net.InternetDomainName;
import google.registry.model.domain.DomainResource;
import javax.annotation.Nullable;
import org.joda.time.DateTime;
/** Represents a WHOIS lookup on a domain name (i.e. SLD). */
public class DomainLookupCommand extends DomainOrHostLookupCommand {
DomainLookupCommand(InternetDomainName domainName) {
this(domainName, null);
}
public DomainLookupCommand(InternetDomainName domainName, @Nullable InternetDomainName tld) {
super(domainName, tld, "Domain");
public DomainLookupCommand(InternetDomainName domainName) {
super(domainName, "Domain");
}
@Override