make/tools/src/build/tools/javazic/Zoneinfo.java

Print this page




 473                                         if (rrec.isSameTransition(prevzrec, prevsave, gmtOffset)) {
 474                                             currentSave = rrec.getSave();
 475                                             tz.addTransition(fromTime,
 476                                                          tz.getOffsetIndex(gmtOffset+currentSave),
 477                                                          tz.getDstOffsetIndex(currentSave));
 478                                             tz.addUsedRec(rrec);
 479                                             usedZone = true;
 480                                             continue;
 481                                         }
 482                                         if (!prevzrec.hasRuleReference()
 483                                             || rule != prevzrec.getRuleRef()
 484                                             || (rule == prevzrec.getRuleRef()
 485                                                 && gmtOffset != prevzrec.getGmtOffset())) {
 486                                             int save = (fromTime == transition) ? rrec.getSave() : currentSave;
 487                                             tz.addTransition(fromTime,
 488                                                          tz.getOffsetIndex(gmtOffset+save),
 489                                                          tz.getDstOffsetIndex(save));
 490                                             tz.addUsedRec(rrec);
 491                                             usedZone = true;
 492                                         }
 493                                     } else {
 494                                         int save = rrec.getSave();
 495                                         tz.addTransition(fromTime,




 496                                                          tz.getOffsetIndex(gmtOffset+save),
 497                                                          tz.getDstOffsetIndex(save));

 498                                         tz.addUsedRec(rrec);
 499                                         usedZone = true;
 500                                     }
 501                                 } else if (year == fromYear && i == rules.size()-1) {
 502                                     int save = rrec.getSave();
 503                                     tz.addTransition(fromTime,
 504                                                      tz.getOffsetIndex(gmtOffset+save),
 505                                                      tz.getDstOffsetIndex(save));
 506                                 }
 507                             }
 508 
 509                             currentSave = rrec.getSave();
 510                             if (fromTime < transition) {
 511                                 tz.addTransition(transition,
 512                                                  tz.getOffsetIndex(gmtOffset+currentSave),
 513                                                  tz.getDstOffsetIndex(currentSave));
 514                                 tz.addUsedRec(rrec);
 515                                 usedZone = true;
 516                             }
 517                         }




 473                                         if (rrec.isSameTransition(prevzrec, prevsave, gmtOffset)) {
 474                                             currentSave = rrec.getSave();
 475                                             tz.addTransition(fromTime,
 476                                                          tz.getOffsetIndex(gmtOffset+currentSave),
 477                                                          tz.getDstOffsetIndex(currentSave));
 478                                             tz.addUsedRec(rrec);
 479                                             usedZone = true;
 480                                             continue;
 481                                         }
 482                                         if (!prevzrec.hasRuleReference()
 483                                             || rule != prevzrec.getRuleRef()
 484                                             || (rule == prevzrec.getRuleRef()
 485                                                 && gmtOffset != prevzrec.getGmtOffset())) {
 486                                             int save = (fromTime == transition) ? rrec.getSave() : currentSave;
 487                                             tz.addTransition(fromTime,
 488                                                          tz.getOffsetIndex(gmtOffset+save),
 489                                                          tz.getDstOffsetIndex(save));
 490                                             tz.addUsedRec(rrec);
 491                                             usedZone = true;
 492                                         }
 493                                     } else {  // fromTime == minTime
 494                                         int save = rrec.getSave();
 495                                         tz.addTransition(minTime,
 496                                                          tz.getOffsetIndex(gmtOffset),
 497                                                          tz.getDstOffsetIndex(0));
 498 
 499                                         tz.addTransition(transition,
 500                                                          tz.getOffsetIndex(gmtOffset+save),
 501                                                          tz.getDstOffsetIndex(save));
 502 
 503                                         tz.addUsedRec(rrec);
 504                                         usedZone = true;
 505                                     }
 506                                 } else if (year == fromYear && i == rules.size()-1) {
 507                                     int save = rrec.getSave();
 508                                     tz.addTransition(fromTime,
 509                                                      tz.getOffsetIndex(gmtOffset+save),
 510                                                      tz.getDstOffsetIndex(save));
 511                                 }
 512                             }
 513 
 514                             currentSave = rrec.getSave();
 515                             if (fromTime < transition) {
 516                                 tz.addTransition(transition,
 517                                                  tz.getOffsetIndex(gmtOffset+currentSave),
 518                                                  tz.getDstOffsetIndex(currentSave));
 519                                 tz.addUsedRec(rrec);
 520                                 usedZone = true;
 521                             }
 522                         }