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

@ -221,8 +221,9 @@ public abstract class PollMessage extends ImmutableObject
@Override
public ImmutableList<ResponseExtension> getResponseExtensions() {
return (launchInfoResponseExtension == null) ? ImmutableList.<ResponseExtension>of() :
ImmutableList.<ResponseExtension>of(launchInfoResponseExtension);
return (launchInfoResponseExtension == null)
? ImmutableList.of()
: ImmutableList.of(launchInfoResponseExtension);
}
/** A builder for {@link OneTime} since it is immutable. */
@ -313,7 +314,7 @@ public abstract class PollMessage extends ImmutableObject
public ImmutableList<ResponseData> getResponseData() {
// Note that the event time is when the auto-renew occured, so the expiration time in the
// response should be 1 year past that, since it denotes the new expiration time.
return ImmutableList.<ResponseData>of(
return ImmutableList.of(
DomainRenewData.create(getTargetId(), getEventTime().plusYears(1)));
}