summaryrefslogtreecommitdiffstats
path: root/libjava/java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-26 05:09:35 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-26 05:09:35 +0000
commit222845a599f0036f4731915dd283576935945ecc (patch)
tree0f0443666f054cd48f2682cb4483ff16a943eaf2 /libjava/java
parent1541bfd5d287758832212bcb946ad479192d1fcf (diff)
downloadppe42-gcc-222845a599f0036f4731915dd283576935945ecc.tar.gz
ppe42-gcc-222845a599f0036f4731915dd283576935945ecc.zip
2005-04-26 Michael Koch <konqueror@gmx.de>
* java/lang/System.java (setSecurityManager): Fixed comment. (getSecurityManager): Removed obsolete comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98763 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/lang/System.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/libjava/java/lang/System.java b/libjava/java/lang/System.java
index 8632d0b7d5d..2b06baa0389 100644
--- a/libjava/java/lang/System.java
+++ b/libjava/java/lang/System.java
@@ -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;
}
OpenPOWER on IntegriCloud