mirror of
https://github.com/google/nomulus.git
synced 2025-05-03 05:27:52 +02:00
Use Immutable types for static final fields
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=149260762
This commit is contained in:
parent
0cbc2bdab6
commit
65fb0aee6a
1 changed files with 31 additions and 30 deletions
|
@ -24,7 +24,6 @@ import com.google.common.collect.ImmutableMap;
|
||||||
import com.google.re2j.Pattern;
|
import com.google.re2j.Pattern;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import javax.annotation.concurrent.Immutable;
|
import javax.annotation.concurrent.Immutable;
|
||||||
|
@ -89,7 +88,8 @@ public final class LordnLog implements Iterable<Entry<String, LordnLog.Result>>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Map<Integer, Result> RESULTS = new ImmutableMap.Builder<Integer, Result>()
|
private static final ImmutableMap<Integer, Result> RESULTS =
|
||||||
|
new ImmutableMap.Builder<Integer, Result>()
|
||||||
.put(2000, new Result(2000, "OK"))
|
.put(2000, new Result(2000, "OK"))
|
||||||
.put(2001, new Result(2001, "OK but not processed"))
|
.put(2001, new Result(2001, "OK but not processed"))
|
||||||
.put(3601, new Result(3601, "TCN Acceptance Date after Registration Date"))
|
.put(3601, new Result(3601, "TCN Acceptance Date after Registration Date"))
|
||||||
|
@ -105,7 +105,8 @@ public final class LordnLog implements Iterable<Entry<String, LordnLog.Result>>
|
||||||
.put(3613, new Result(3613, "SMD was revoked when used"))
|
.put(3613, new Result(3613, "SMD was revoked when used"))
|
||||||
.put(3614, new Result(3614, "TCNID does not exist"))
|
.put(3614, new Result(3614, "TCNID does not exist"))
|
||||||
.put(3615, new Result(3615, "Recent-dnl-insertion outside of the time window"))
|
.put(3615, new Result(3615, "Recent-dnl-insertion outside of the time window"))
|
||||||
.put(3616, new Result(3616, "Registration Date of DN in claims before the end of Sunrise"))
|
.put(
|
||||||
|
3616, new Result(3616, "Registration Date of DN in claims before the end of Sunrise"))
|
||||||
.put(3617, new Result(3617, "Registrar has not been approved by the TMDB"))
|
.put(3617, new Result(3617, "Registrar has not been approved by the TMDB"))
|
||||||
.put(4501, new Result(4501, "Syntax Error in DN Line"))
|
.put(4501, new Result(4501, "Syntax Error in DN Line"))
|
||||||
.put(4601, new Result(4601, "Invalid TLD used"))
|
.put(4601, new Result(4601, "Invalid TLD used"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue