RFR: 8291027: Some of TimeZone methods marked 'synchronized' unnecessarily

Andrey Turbanov aturbanov at openjdk.org
Tue Jan 16 11:16:21 UTC 2024


On Tue, 16 Jan 2024 10:19:44 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> 8291027: Some of TimeZone methods marked 'synchronized' unnecessarily

src/java.base/share/classes/java/util/TimeZone.java line 629:

> 627:      */
> 628:     public static String[] getAvailableIDs(int rawOffset) {
> 629:         return ZoneInfo.getAvailableIDs(rawOffset);

BTW can we call `ZoneInfoFile.getZoneIds` here directly? 
`ZoneInfo.getAvailableIDs` bridge seems unnecessary.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/17441#discussion_r1453280995


More information about the core-libs-dev mailing list