From 57eb56bdfefeabed1e6ff65cea1b37debf454885 Mon Sep 17 00:00:00 2001 From: Chris Povirk Date: Fri, 4 Oct 2024 12:38:19 -0400 Subject: [PATCH] Annotate `InstantSource`. --- src/java.base/share/classes/java/time/InstantSource.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/java.base/share/classes/java/time/InstantSource.java b/src/java.base/share/classes/java/time/InstantSource.java index cf4b3e7187a..836fadd7f80 100644 --- a/src/java.base/share/classes/java/time/InstantSource.java +++ b/src/java.base/share/classes/java/time/InstantSource.java @@ -24,6 +24,8 @@ */ package java.time; +import org.jspecify.annotations.NullMarked; + import java.time.Clock.SourceClock; import java.time.Clock.SystemInstantSource; import java.util.Objects; @@ -95,6 +97,7 @@ * * @since 17 */ +@NullMarked public interface InstantSource { /**