< prev index next >

make/jdk/src/classes/build/tools/tzdb/TzdbZoneRulesProvider.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 65,81 **** throw new ZoneRulesException("Unable to load TZDB time-zone rules", ex); } } public Set<String> getZoneIds() { ! return new TreeSet(regionIds); } public Map<String, String> getAliasMap() { return links; } public ZoneRules getZoneRules(String zoneId) { Object obj = zones.get(zoneId); if (obj == null) { String zoneId0 = zoneId; if (links.containsKey(zoneId)) { --- 65,82 ---- throw new ZoneRulesException("Unable to load TZDB time-zone rules", ex); } } public Set<String> getZoneIds() { ! return new TreeSet<String>(regionIds); } public Map<String, String> getAliasMap() { return links; } + @SuppressWarnings("unchecked") public ZoneRules getZoneRules(String zoneId) { Object obj = zones.get(zoneId); if (obj == null) { String zoneId0 = zoneId; if (links.containsKey(zoneId)) {
< prev index next >