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:
jianglai 2016-09-23 12:38:58 -07:00 committed by Ben McIlwain
parent 8d4234090e
commit de7fb7a202
7 changed files with 39 additions and 17 deletions

View file

@ -137,7 +137,7 @@ public class RdapHelpAction extends RdapActionBase {
builder,
BoilerplateType.OTHER,
ImmutableList.of(getJsonHelpNotice(pathSearchString, rdapLinkBase)),
ImmutableList.of(),
ImmutableList.<ImmutableMap<String, Object>>of(),
rdapLinkBase);
return builder.build();
}