hughesjr / rpms / tzdata

Forked from rpms/tzdata 2 years ago
Clone
f3bcf1
--- sun/tools/javazic/Mappings.java.orig	2015-04-13 12:40:26.000000000 -0400
f3bcf1
+++ sun/tools/javazic/Mappings.java	2015-04-13 12:42:11.000000000 -0400
f3bcf1
@@ -75,8 +75,10 @@
f3bcf1
 	    Zone zone = zones.get(zoneName);
f3bcf1
 	    String zonename = zone.getName();
f3bcf1
 	    int rawOffset = zone.get(zone.size()-1).getGmtOffset();
f3bcf1
+
f3bcf1
 	    // If the GMT offset of this Zone will change in some
f3bcf1
 	    // future time, this Zone is added to the exclude list.
f3bcf1
+            boolean isExcluded = false;
f3bcf1
 	    if (zone.size() > 1) {
f3bcf1
 		ZoneRec zrec = zone.get(zone.size()-2);
f3bcf1
 		if ((zrec.getGmtOffset() != rawOffset)
f3bcf1
@@ -85,7 +87,7 @@
f3bcf1
 			excludeList = new ArrayList<String>();
f3bcf1
 		    }
f3bcf1
 		    excludeList.add(zone.getName());
f3bcf1
-		    continue;
f3bcf1
+                    isExcluded = true;
f3bcf1
 		}
f3bcf1
 	    }
f3bcf1
 
f3bcf1
@@ -101,9 +103,11 @@
f3bcf1
 		rawOffsetsIndex.add(i, rawOffset);
f3bcf1
 
f3bcf1
 		Set<String> perRawOffset = new TreeSet<String>();
f3bcf1
-		perRawOffset.add(zonename);
f3bcf1
+                if (!isExcluded) {
f3bcf1
+                    perRawOffset.add(zonename);
f3bcf1
+                }
f3bcf1
 		rawOffsetsIndexTable.add(i, perRawOffset);
f3bcf1
-	    } else {
f3bcf1
+            } else if (!isExcluded) {
f3bcf1
 		int i = rawOffsetsIndex.indexOf(new Integer(rawOffset));
f3bcf1
 		Set<String> perRawOffset = rawOffsetsIndexTable.get(i);
f3bcf1
 		perRawOffset.add(zonename);