mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8263668: Update java.time to use instanceof pattern variable
Reviewed-by: lancea, ryadav, naoto, rriggs, dfuchs, scolebourne, chegar
This commit is contained in:
parent
a93d911954
commit
28af31db34
34 changed files with 129 additions and 176 deletions
|
@ -1940,7 +1940,7 @@ public final class LocalDate
|
|||
// need to handle case where there is a gap from 11:30 to 00:30
|
||||
// standard ZDT factory would result in 01:00 rather than 00:30
|
||||
LocalDateTime ldt = atTime(LocalTime.MIDNIGHT);
|
||||
if (zone instanceof ZoneOffset == false) {
|
||||
if (!(zone instanceof ZoneOffset)) {
|
||||
ZoneRules rules = zone.getRules();
|
||||
ZoneOffsetTransition trans = rules.getTransition(ldt);
|
||||
if (trans != null && trans.isGap()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue