mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 08:57:12 +02:00
Use Immutable types for static final fields
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=149260759
This commit is contained in:
parent
439742fd11
commit
0cbc2bdab6
3 changed files with 12 additions and 12 deletions
|
@ -19,11 +19,11 @@ import static com.google.common.base.Predicates.not;
|
|||
import static java.util.Arrays.asList;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.collect.Iterables;
|
||||
import com.google.common.collect.Maps;
|
||||
import google.registry.model.translators.EnumToAttributeAdapter;
|
||||
import google.registry.model.translators.EnumToAttributeAdapter.EppEnum;
|
||||
import java.util.Map;
|
||||
import javax.annotation.Nullable;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
||||
|
@ -100,7 +100,7 @@ public enum GracePeriodStatus implements EppEnum {
|
|||
TRANSFER("transferPeriod");
|
||||
|
||||
/** Provide a quick lookup of GracePeriodStatus from XML name. */
|
||||
private static final Map<String, GracePeriodStatus> XML_NAME_TO_GRACE_PERIOD_STATUS =
|
||||
private static final ImmutableMap<String, GracePeriodStatus> XML_NAME_TO_GRACE_PERIOD_STATUS =
|
||||
Maps.uniqueIndex(
|
||||
// SUNRUSH_ADD isn't a real grace period type visible in EPP XML, so exclude it.
|
||||
Iterables.filter(asList(GracePeriodStatus.values()), not(equalTo(SUNRUSH_ADD))),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue