mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8291027: Some of TimeZone methods marked 'synchronized' unnecessarily
Reviewed-by: liach, naoto, jlu
This commit is contained in:
parent
8e8f800071
commit
bef5f56544
1 changed files with 3 additions and 3 deletions
|
@ -545,7 +545,7 @@ public abstract class TimeZone implements Serializable, Cloneable {
|
||||||
* cannot be understood.
|
* cannot be understood.
|
||||||
* @throws NullPointerException if {@code ID} is {@code null}
|
* @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);
|
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.
|
* both have GMT-07:00, but differ in daylight saving behavior.
|
||||||
* @see #getRawOffset()
|
* @see #getRawOffset()
|
||||||
*/
|
*/
|
||||||
public static synchronized String[] getAvailableIDs(int rawOffset) {
|
public static String[] getAvailableIDs(int rawOffset) {
|
||||||
return ZoneInfo.getAvailableIDs(rawOffset);
|
return ZoneInfo.getAvailableIDs(rawOffset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -629,7 +629,7 @@ public abstract class TimeZone implements Serializable, Cloneable {
|
||||||
* Gets all the available IDs supported.
|
* Gets all the available IDs supported.
|
||||||
* @return an array of IDs.
|
* @return an array of IDs.
|
||||||
*/
|
*/
|
||||||
public static synchronized String[] getAvailableIDs() {
|
public static String[] getAvailableIDs() {
|
||||||
return ZoneInfo.getAvailableIDs();
|
return ZoneInfo.getAvailableIDs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue