Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8313231

Redundant if statement in ZoneInfoFile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 17-pool, 21
    • core-libs

      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;
          }
          ...
      }

      The second if statement looks unnecessary.

            jjiang John Jiang
            jjiang John Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: