mirror of
https://github.com/google/nomulus
synced 2026-01-06 21:47:31 +00:00
Add type parameters to suppress Eclipse error message
Eclipse (with Guide) is bothering me very much that it cannot infer the intended type for ImmutableList.of() from the argument type that the calling function defines. Adding explicit type parameters to get rid of the annoying exclamations marks in Eclipse. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=134105086
This commit is contained in:
@@ -126,7 +126,11 @@ public class RdapDomainSearchAction extends RdapActionBase {
|
||||
ImmutableMap.Builder<String, Object> builder = new ImmutableMap.Builder<>();
|
||||
builder.put("domainSearchResults", results);
|
||||
RdapJsonFormatter.addTopLevelEntries(
|
||||
builder, BoilerplateType.DOMAIN, ImmutableList.of(), ImmutableList.of(), rdapLinkBase);
|
||||
builder,
|
||||
BoilerplateType.DOMAIN,
|
||||
ImmutableList.<ImmutableMap<String, Object>>of(),
|
||||
ImmutableList.<ImmutableMap<String, Object>>of(),
|
||||
rdapLinkBase);
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user