mirror of
https://github.com/google/nomulus
synced 2026-09-19 14:34:18 +00:00
Make all but one field on RegistryConfig static
The next step will be to get rid of RegistryConfig descendants and RegistryConfigLoader entirely. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=143812815
This commit is contained in:
@@ -24,6 +24,7 @@ import static com.google.common.base.Strings.emptyToNull;
|
||||
import static com.google.common.base.Strings.nullToEmpty;
|
||||
import static com.google.common.collect.Sets.immutableEnumSet;
|
||||
import static com.google.common.io.BaseEncoding.base64;
|
||||
import static google.registry.config.RegistryConfig.getRegistrarDefaultWhoisServer;
|
||||
import static google.registry.model.common.EntityGroupRoot.getCrossTldKey;
|
||||
import static google.registry.model.ofy.ObjectifyService.ofy;
|
||||
import static google.registry.model.ofy.Ofy.RECOMMENDED_MEMCACHE_EXPIRATION;
|
||||
@@ -446,10 +447,7 @@ public class Registrar extends ImmutableObject implements Buildable, Jsonifiable
|
||||
}
|
||||
|
||||
public String getWhoisServer() {
|
||||
if (whoisServer == null) {
|
||||
return ENVIRONMENT.config().getRegistrarDefaultWhoisServer();
|
||||
}
|
||||
return whoisServer;
|
||||
return firstNonNull(whoisServer, getRegistrarDefaultWhoisServer());
|
||||
}
|
||||
|
||||
public boolean getBlockPremiumNames() {
|
||||
|
||||
Reference in New Issue
Block a user