Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds prefab values for java.time.Clock #384

Merged
merged 1 commit into from Jan 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -218,6 +218,12 @@ private void addDateTimeClasses() {
new GregorianCalendar(2010, 7, 5),
new GregorianCalendar(2010, 7, 4)
);
addValues(
Clock.class,
Clock.systemUTC(),
Clock.system(ZoneId.of("-10")),
Clock.systemUTC()
);
addValues(Date.class, new Date(0), new Date(1), new Date(0));
addValues(
DateFormat.class,
Expand Down
Expand Up @@ -522,6 +522,7 @@ static final class Java8ApiClassesContainer {
private final CompletableFuture<?> completableFuture;
private final StampedLock stampedLock;
private final Supplier<?> supplier;
private final Clock clock;
private final Duration duration;
private final Instant instant;
private final MonthDay monthDay;
Expand All @@ -546,6 +547,7 @@ public Java8ApiClassesContainer(
CompletableFuture<?> completableFuture,
StampedLock stampedLock,
Supplier<?> supplier,
Clock clock,
Duration duration,
Instant instant,
MonthDay monthDay,
Expand All @@ -569,6 +571,7 @@ public Java8ApiClassesContainer(
this.completableFuture = completableFuture;
this.stampedLock = stampedLock;
this.supplier = supplier;
this.clock = clock;
this.duration = duration;
this.instant = instant;
this.monthDay = monthDay;
Expand Down