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> 2005-04-25 Tom Tromey <tromey@redhat.com>
* java/awt/AWTKeyStroke.java (vktable): Now package-private. * java/awt/AWTKeyStroke.java (vktable): Now package-private.
......
...@@ -177,9 +177,9 @@ public final class System ...@@ -177,9 +177,9 @@ public final class System
*/ */
public static synchronized void setSecurityManager(SecurityManager sm) public static synchronized void setSecurityManager(SecurityManager sm)
{ {
// Implementation note: the field lives in Runtime because of bootstrap // Implementation note: the field lives in SecurityManager because of
// initialization issues. This method is synchronized so that no other // bootstrap initialization issues. This method is synchronized so that
// thread changes it to null before this thread makes the change. // no other thread changes it to null before this thread makes the change.
if (SecurityManager.current != null) if (SecurityManager.current != null)
SecurityManager.current.checkPermission SecurityManager.current.checkPermission
(new RuntimePermission("setSecurityManager")); (new RuntimePermission("setSecurityManager"));
...@@ -194,8 +194,6 @@ public final class System ...@@ -194,8 +194,6 @@ public final class System
*/ */
public static SecurityManager getSecurityManager() public static SecurityManager getSecurityManager()
{ {
// Implementation note: the field lives in Runtime because of bootstrap
// initialization issues.
return SecurityManager.current; 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