Remove the deprecated MISTAKEN_PREMIUM reservation type

It doesn't do anything that ALLOWED_IN_SUNRISE doesn't do, and there's no point
in having two separate types when we can simply keep track of the semantic
difference between the two by using different lists (as we have for .soy).

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=212997752
This commit is contained in:
mcilwain 2018-09-14 09:52:57 -07:00 committed by jianglai
parent a9944b8ce0
commit 8ddbf88151
7 changed files with 12 additions and 21 deletions

View file

@ -40,24 +40,20 @@ public enum ReservationType {
/** The domain can only be registered during sunrise, and is reserved thereafter. */
ALLOWED_IN_SUNRISE("Reserved for non-sunrise", 1),
/** The domain can only be registered during sunrise, and is reserved thereafter. */
@Deprecated
MISTAKEN_PREMIUM("Reserved", 2),
/** The domain can only be registered by providing a specific token. */
RESERVED_FOR_SPECIFIC_USE("Reserved", 3),
RESERVED_FOR_SPECIFIC_USE("Reserved", 2),
/** The domain is for an anchor tenant and can only be registered using a specific token. */
RESERVED_FOR_ANCHOR_TENANT("Reserved", 4),
RESERVED_FOR_ANCHOR_TENANT("Reserved", 3),
/**
* The domain can only be registered during sunrise for defensive purposes, and will never
* resolve.
*/
NAME_COLLISION("Cannot be delegated", 5),
NAME_COLLISION("Cannot be delegated", 4),
/** The domain can never be registered. */
FULLY_BLOCKED("Reserved", 6);
FULLY_BLOCKED("Reserved", 5);
@Nullable
private final String messageForCheck;