hughesjr / rpms / tzdata

Forked from rpms/tzdata 2 years ago
Clone
221560
--- sun/tools/javazic/Mappings.java.orig	2015-04-13 12:42:30.000000000 -0400
221560
+++ sun/tools/javazic/Mappings.java	2015-04-13 12:43:32.000000000 -0400
221560
@@ -1,5 +1,5 @@
221560
 /*
221560
- * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
221560
+ * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
221560
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
221560
  *
221560
  * This code is free software; you can redistribute it and/or modify it
221560
@@ -26,9 +26,6 @@
221560
 package sun.tools.javazic;
221560
 
221560
 import	java.util.ArrayList;
221560
-import	java.util.HashMap;
221560
-import	java.util.HashSet;
221560
-import	java.util.Iterator;
221560
 import	java.util.LinkedList;
221560
 import	java.util.List;
221560
 import	java.util.Map;
221560
@@ -79,8 +76,8 @@
221560
 	    // If the GMT offset of this Zone will change in some
221560
 	    // future time, this Zone is added to the exclude list.
221560
             boolean isExcluded = false;
221560
-	    if (zone.size() > 1) {
221560
-		ZoneRec zrec = zone.get(zone.size()-2);
221560
+            for (int i = 0; i < zone.size(); i++) {
221560
+                ZoneRec zrec = zone.get(i);
221560
 		if ((zrec.getGmtOffset() != rawOffset)
221560
 		    && (zrec.getUntilTime(0) > Time.getCurrentTime())) {
221560
 		    if (excludeList == null) {
221560
@@ -88,6 +85,7 @@
221560
 		    }
221560
 		    excludeList.add(zone.getName());
221560
                     isExcluded = true;
221560
+                    break;
221560
 		}
221560
 	    }
221560