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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user