Skip to content

Commit 54acadb

Browse files
Gautham KrishnanRoger Riggs
authored andcommitted
8294226: Document missing UnsupportedTemporalTypeException
Reviewed-by: rriggs, naoto
1 parent 0514cee commit 54acadb

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/java.base/share/classes/java/time/chrono/ChronoLocalDate.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ default ChronoLocalDate plus(TemporalAmount amount) {
455455
/**
456456
* {@inheritDoc}
457457
* @throws DateTimeException {@inheritDoc}
458+
* @throws UnsupportedTemporalTypeException {@inheritDoc}
458459
* @throws ArithmeticException {@inheritDoc}
459460
*/
460461
@Override

src/java.base/share/classes/java/time/chrono/ChronoLocalDateTime.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -84,6 +84,7 @@
8484
import java.time.temporal.TemporalQueries;
8585
import java.time.temporal.TemporalQuery;
8686
import java.time.temporal.TemporalUnit;
87+
import java.time.temporal.UnsupportedTemporalTypeException;
8788
import java.time.zone.ZoneRules;
8889
import java.util.Comparator;
8990
import java.util.Objects;
@@ -276,6 +277,7 @@ default ChronoLocalDateTime<D> with(TemporalAdjuster adjuster) {
276277
/**
277278
* {@inheritDoc}
278279
* @throws DateTimeException {@inheritDoc}
280+
* @throws UnsupportedTemporalTypeException {@inheritDoc}
279281
* @throws ArithmeticException {@inheritDoc}
280282
*/
281283
@Override
@@ -294,6 +296,7 @@ default ChronoLocalDateTime<D> plus(TemporalAmount amount) {
294296
/**
295297
* {@inheritDoc}
296298
* @throws DateTimeException {@inheritDoc}
299+
* @throws UnsupportedTemporalTypeException {@inheritDoc}
297300
* @throws ArithmeticException {@inheritDoc}
298301
*/
299302
@Override
@@ -312,6 +315,7 @@ default ChronoLocalDateTime<D> minus(TemporalAmount amount) {
312315
/**
313316
* {@inheritDoc}
314317
* @throws DateTimeException {@inheritDoc}
318+
* @throws UnsupportedTemporalTypeException {@inheritDoc}
315319
* @throws ArithmeticException {@inheritDoc}
316320
*/
317321
@Override

src/java.base/share/classes/java/time/chrono/ChronoZonedDateTime.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -422,6 +422,7 @@ default ChronoZonedDateTime<D> with(TemporalAdjuster adjuster) {
422422
/**
423423
* {@inheritDoc}
424424
* @throws DateTimeException {@inheritDoc}
425+
* @throws UnsupportedTemporalTypeException {@inheritDoc}
425426
* @throws ArithmeticException {@inheritDoc}
426427
*/
427428
@Override
@@ -440,6 +441,7 @@ default ChronoZonedDateTime<D> plus(TemporalAmount amount) {
440441
/**
441442
* {@inheritDoc}
442443
* @throws DateTimeException {@inheritDoc}
444+
* @throws UnsupportedTemporalTypeException {@inheritDoc}
443445
* @throws ArithmeticException {@inheritDoc}
444446
*/
445447
@Override
@@ -458,6 +460,7 @@ default ChronoZonedDateTime<D> minus(TemporalAmount amount) {
458460
/**
459461
* {@inheritDoc}
460462
* @throws DateTimeException {@inheritDoc}
463+
* @throws UnsupportedTemporalTypeException {@inheritDoc}
461464
* @throws ArithmeticException {@inheritDoc}
462465
*/
463466
@Override

0 commit comments

Comments
 (0)