Runtime.java, [...]: Replaced java.lang.Runtime.securityManager by java.lang.SecurityManager.current...
2005-04-25 Michael Koch <konqueror@gmx.de> * java/lang/Runtime.java, java/lang/SecurityManager.java, java/lang/System.java, java/lang/ThreadGroup.java: Replaced java.lang.Runtime.securityManager by java.lang.SecurityManager.current (as used in GNU classpath). From-SVN: r98738
This commit is contained in:
parent
1f4ea3f2fa
commit
4b30c6bda0
5 changed files with 39 additions and 30 deletions
|
@ -263,7 +263,7 @@ public class ThreadGroup
|
|||
public final void checkAccess()
|
||||
{
|
||||
// Bypass System.getSecurityManager, for bootstrap efficiency.
|
||||
SecurityManager sm = Runtime.securityManager;
|
||||
SecurityManager sm = SecurityManager.current;
|
||||
if (sm != null)
|
||||
sm.checkAccess(this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue