diff options
author | Dalibor Topic <robilad@yahoo.com> | 2004-04-09 15:02:21 +0000 |
---|---|---|
committer | Dalibor Topic <robilad@yahoo.com> | 2004-04-09 15:02:21 +0000 |
commit | 3d2b77abbfd049ae88819c80b9ee5c0a2033acbc (patch) | |
tree | 3a9de56909b4dc23e0815fb26c2fbd2da427ca13 /java/lang/SecurityManager.java | |
parent | d8b7d9af04b0761f0eb278b0b487666efad9dc73 (diff) | |
download | classpath-3d2b77abbfd049ae88819c80b9ee5c0a2033acbc.tar.gz |
2004-04-09 Dalibor Topic <robilad@kaffe.org>
* java/lang/SecurityManager.java: (checkAccess): Use getThreadGroup().
Improved documentation.
Diffstat (limited to 'java/lang/SecurityManager.java')
-rw-r--r-- | java/lang/SecurityManager.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/java/lang/SecurityManager.java b/java/lang/SecurityManager.java index bec39de1c..7282da3ee 100644 --- a/java/lang/SecurityManager.java +++ b/java/lang/SecurityManager.java @@ -375,9 +375,9 @@ public class SecurityManager * <code>RuntimePermission("modifyThread")</code>, return silently, so that * core classes (the Classpath library!) can modify any thread. * - * @param t the other Thread to check + * @param thread the other Thread to check * @throws SecurityException if permission is denied - * @throws NullPointerException if t is null + * @throws NullPointerException if thread is null * @see Thread#stop() * @see Thread#suspend() * @see Thread#resume() @@ -385,9 +385,10 @@ public class SecurityManager * @see Thread#setName(String) * @see Thread#setDaemon(boolean) */ - public void checkAccess(Thread t) + public void checkAccess(Thread thread) { - if (t.group != null && t.group.getParent() != null) + if (thread.getThreadGroup() != null + && thread.getThreadGroup().getParent() != null) checkPermission(new RuntimePermission("modifyThread")); } |