The documentation says "may return null to indicate not found":
|
* @return the queried value, may return null to indicate not found |
Also, maybe R shouldn't extends @Nullable Object:
|
public interface TemporalQuery<R extends @Nullable Object> { |
since the meaning of a null return value would be ambiguous if R itself is @Nullable.
The documentation says "may return null to indicate not found":
jdk/src/java.base/share/classes/java/time/temporal/TemporalQuery.java
Line 143 in 2ada91b
Also, maybe
Rshouldn'textends @Nullable Object:jdk/src/java.base/share/classes/java/time/temporal/TemporalQuery.java
Line 107 in 2ada91b
since the meaning of a
nullreturn value would be ambiguous ifRitself is@Nullable.