mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-15 10:23:28 +00:00
8291027: Some of TimeZone methods marked 'synchronized' unnecessarily
Reviewed-by: liach, naoto, jlu
This commit is contained in:
parent
8e8f800071
commit
bef5f56544
@ -545,7 +545,7 @@ public abstract class TimeZone implements Serializable, Cloneable {
|
||||
* cannot be understood.
|
||||
* @throws NullPointerException if {@code ID} is {@code null}
|
||||
*/
|
||||
public static synchronized TimeZone getTimeZone(String ID) {
|
||||
public static TimeZone getTimeZone(String ID) {
|
||||
return getTimeZone(ID, true);
|
||||
}
|
||||
|
||||
@ -621,7 +621,7 @@ public abstract class TimeZone implements Serializable, Cloneable {
|
||||
* both have GMT-07:00, but differ in daylight saving behavior.
|
||||
* @see #getRawOffset()
|
||||
*/
|
||||
public static synchronized String[] getAvailableIDs(int rawOffset) {
|
||||
public static String[] getAvailableIDs(int rawOffset) {
|
||||
return ZoneInfo.getAvailableIDs(rawOffset);
|
||||
}
|
||||
|
||||
@ -629,7 +629,7 @@ public abstract class TimeZone implements Serializable, Cloneable {
|
||||
* Gets all the available IDs supported.
|
||||
* @return an array of IDs.
|
||||
*/
|
||||
public static synchronized String[] getAvailableIDs() {
|
||||
public static String[] getAvailableIDs() {
|
||||
return ZoneInfo.getAvailableIDs();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user