Skip to content

Commit

Permalink
8313231: Redundant if statement in ZoneInfoFile
Browse files Browse the repository at this point in the history
Reviewed-by: jiefu, scolebourne
  • Loading branch information
John Jiang committed Jul 31, 2023
1 parent 807ca2d commit f8c2b7f
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,9 @@ private static ZoneInfo getZoneInfo(String zoneId,
}
if (i < savingsInstantTransitions.length) {
// javazic writes the last GMT offset into index 0!
if (i < savingsInstantTransitions.length) {
offsets[0] = standardOffsets[standardOffsets.length - 1] * 1000;
nOffsets = 1;
}
offsets[0] = standardOffsets[standardOffsets.length - 1] * 1000;
nOffsets = 1;

// ZoneInfo has a beginning entry for 1900.
// Only add it if this is not the only one in table
nOffsets = addTrans(transitions, nTrans++,
Expand Down

1 comment on commit f8c2b7f

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.