hughesjr / rpms / tzdata

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