1
0
mirror of https://github.com/google/nomulus synced 2026-05-25 09:10:51 +00:00

Run automatic Java 8 conversion over codebase

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171174380
This commit is contained in:
mcilwain
2017-10-05 10:48:38 -07:00
committed by Ben McIlwain
parent 44df5da771
commit 5edb7935ed
190 changed files with 2312 additions and 3096 deletions

View File

@@ -21,7 +21,6 @@ import static google.registry.util.DateTimeUtils.isAtOrAfter;
import static google.registry.util.DateTimeUtils.isBeforeOrAt;
import static org.joda.time.DateTimeZone.UTC;
import com.google.common.base.Function;
import com.google.common.base.Splitter;
import com.google.common.collect.ContiguousSet;
import com.google.common.collect.FluentIterable;
@@ -85,11 +84,7 @@ public class TimeOfYear extends ImmutableObject {
normalizedRange.lowerEndpoint().getYear(),
normalizedRange.upperEndpoint().getYear());
return FluentIterable.from(ContiguousSet.create(yearRange, integers()))
.transform(new Function<Integer, DateTime>() {
@Override
public DateTime apply(Integer year) {
return getDateTimeWithYear(year);
}})
.transform(this::getDateTimeWithYear)
.filter(normalizedRange);
}