< prev index next >
make/jdk/src/classes/build/tools/tzdb/TzdbZoneRulesProvider.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
+ * 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,11 +65,11 @@
throw new ZoneRulesException("Unable to load TZDB time-zone rules", ex);
}
}
public Set<String> getZoneIds() {
- return new TreeSet(regionIds);
+ return new TreeSet<String>(regionIds);
}
public Map<String, String> getAliasMap() {
return links;
}
@@ -98,10 +98,11 @@
}
if (obj instanceof ZoneRules) {
return (ZoneRules)obj;
}
try {
+ @SuppressWarnings("unchecked")
ZoneRules zrules = buildRules(zoneId, (List<ZoneLine>)obj);
zones.put(zoneId, zrules);
return zrules;
} catch (Exception ex) {
throw new ZoneRulesException(
< prev index next >