mirror of
https://github.com/google/nomulus.git
synced 2025-05-20 19:29:35 +02:00
Always use the constructor to make Immutable Collection Builders
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135359669
This commit is contained in:
parent
79387f5d1e
commit
b65b855067
16 changed files with 29 additions and 32 deletions
|
@ -468,7 +468,7 @@ public class RdapJsonFormatterTest {
|
|||
|
||||
@Test
|
||||
public void testTopLevel() throws Exception {
|
||||
ImmutableMap.Builder<String, Object> builder = ImmutableMap.builder();
|
||||
ImmutableMap.Builder<String, Object> builder = new ImmutableMap.Builder<>();
|
||||
builder.put("key", "value");
|
||||
RdapJsonFormatter.addTopLevelEntries(
|
||||
builder,
|
||||
|
@ -481,7 +481,7 @@ public class RdapJsonFormatterTest {
|
|||
|
||||
@Test
|
||||
public void testTopLevel_withTermsOfService() throws Exception {
|
||||
ImmutableMap.Builder<String, Object> builder = ImmutableMap.builder();
|
||||
ImmutableMap.Builder<String, Object> builder = new ImmutableMap.Builder<>();
|
||||
builder.put("key", "value");
|
||||
RdapJsonFormatter.addTopLevelEntries(
|
||||
builder,
|
||||
|
@ -494,7 +494,7 @@ public class RdapJsonFormatterTest {
|
|||
|
||||
@Test
|
||||
public void testTopLevel_domain() throws Exception {
|
||||
ImmutableMap.Builder<String, Object> builder = ImmutableMap.builder();
|
||||
ImmutableMap.Builder<String, Object> builder = new ImmutableMap.Builder<>();
|
||||
builder.put("key", "value");
|
||||
RdapJsonFormatter.addTopLevelEntries(
|
||||
builder,
|
||||
|
@ -507,7 +507,7 @@ public class RdapJsonFormatterTest {
|
|||
|
||||
@Test
|
||||
public void testTopLevel_domainWithTermsOfService() throws Exception {
|
||||
ImmutableMap.Builder<String, Object> builder = ImmutableMap.builder();
|
||||
ImmutableMap.Builder<String, Object> builder = new ImmutableMap.Builder<>();
|
||||
builder.put("key", "value");
|
||||
RdapJsonFormatter.addTopLevelEntries(
|
||||
builder,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue