Skip to content

Commit f8c2b7f

Browse files
author
John Jiang
committed
8313231: Redundant if statement in ZoneInfoFile
Reviewed-by: jiefu, scolebourne
1 parent 807ca2d commit f8c2b7f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,9 @@ private static ZoneInfo getZoneInfo(String zoneId,
468468
}
469469
if (i < savingsInstantTransitions.length) {
470470
// javazic writes the last GMT offset into index 0!
471-
if (i < savingsInstantTransitions.length) {
472-
offsets[0] = standardOffsets[standardOffsets.length - 1] * 1000;
473-
nOffsets = 1;
474-
}
471+
offsets[0] = standardOffsets[standardOffsets.length - 1] * 1000;
472+
nOffsets = 1;
473+
475474
// ZoneInfo has a beginning entry for 1900.
476475
// Only add it if this is not the only one in table
477476
nOffsets = addTrans(transitions, nTrans++,

0 commit comments

Comments
 (0)