Commit 57fc4832 by Michael Koch Committed by Michael Koch

2005-04-26 Michael Koch <konqueror@gmx.de>

	* java/lang/System.java
	(setSecurityManager): Fixed comment.
	(getSecurityManager): Removed obsolete comment.

From-SVN: r98763
parent c3bdeea8
2005-04-26 Michael Koch <konqueror@gmx.de>
* java/lang/System.java
(setSecurityManager): Fixed comment.
(getSecurityManager): Removed obsolete comment.
2005-04-25 Tom Tromey <tromey@redhat.com>
* java/awt/AWTKeyStroke.java (vktable): Now package-private.
......
......@@ -177,9 +177,9 @@ public final class System
*/
public static synchronized void setSecurityManager(SecurityManager sm)
{
// Implementation note: the field lives in Runtime because of bootstrap
// initialization issues. This method is synchronized so that no other
// thread changes it to null before this thread makes the change.
// Implementation note: the field lives in SecurityManager because of
// bootstrap initialization issues. This method is synchronized so that
// no other thread changes it to null before this thread makes the change.
if (SecurityManager.current != null)
SecurityManager.current.checkPermission
(new RuntimePermission("setSecurityManager"));
......@@ -194,8 +194,6 @@ public final class System
*/
public static SecurityManager getSecurityManager()
{
// Implementation note: the field lives in Runtime because of bootstrap
// initialization issues.
return SecurityManager.current;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment