Remove unnecessary generic type arguments

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=175155365
This commit is contained in:
mcilwain 2017-11-09 07:33:40 -08:00 committed by jianglai
parent 8dcc2d6833
commit 2aa897e698
140 changed files with 355 additions and 465 deletions

View file

@ -33,7 +33,7 @@ public final class JsonResponseHelper {
/** Creates a JSON response message securely to the browser client with a parser breaker. */
public static ImmutableMap<String, Object> create(
Status status, String message, Iterable<? extends Map<String, ?>> results) {
return ImmutableMap.<String, Object>of(
return ImmutableMap.of(
"status", status.toString(),
"message", checkNotNull(message, "message"),
"results", ImmutableList.copyOf(results));
@ -41,7 +41,7 @@ public final class JsonResponseHelper {
/** Same as {@link #create(Status, String, Iterable)} but with zero results. */
public static ImmutableMap<String, Object> create(Status status, String message) {
return create(status, message, ImmutableList.<Map<String, ?>>of());
return create(status, message, ImmutableList.of());
}
/** Same as {@link #create(Status, String, Iterable)} but with only one results. */
@ -53,7 +53,7 @@ public final class JsonResponseHelper {
/** Creates a JSON response message when a submitted form field is invalid. */
public static ImmutableMap<String, Object> createFormFieldError(
String message, String formFieldName) {
return ImmutableMap.<String, Object>of(
return ImmutableMap.of(
"status", Status.ERROR.toString(),
"message", checkNotNull(message, "message"),
"field", checkNotNull(formFieldName, "formFieldName"),