mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8344252: SM cleanup in java.util classes
Reviewed-by: naoto, smarks
This commit is contained in:
parent
59ffac84d3
commit
c5b6ed8ca0
13 changed files with 160 additions and 330 deletions
|
@ -1216,10 +1216,6 @@ public final class Locale implements Cloneable, Serializable {
|
|||
if (newLocale == null)
|
||||
throw new NullPointerException("Can't set default locale to NULL");
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
SecurityManager sm = System.getSecurityManager();
|
||||
if (sm != null) sm.checkPermission(new PropertyPermission
|
||||
("user.language", "write"));
|
||||
switch (category) {
|
||||
case DISPLAY:
|
||||
defaultDisplayLocale = newLocale;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue