diff options
author | Nick Kralevich <nnk@google.com> | 2012-03-02 08:40:35 -0800 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2012-03-02 08:43:40 -0800 |
commit | e401d6274863e8e59c5cdfd26b82ec1cdda39c09 (patch) | |
tree | bfddcf4a79ef2038b508d2203797855e91b7a772 /luni/src | |
parent | 796f0d5a4e7b83c3efc5e587b6766977dc20b0c3 (diff) | |
download | libcore-e401d6274863e8e59c5cdfd26b82ec1cdda39c09.zip libcore-e401d6274863e8e59c5cdfd26b82ec1cdda39c09.tar.gz libcore-e401d6274863e8e59c5cdfd26b82ec1cdda39c09.tar.bz2 |
System: improve setSecurityManager documentation.
Make it clearer that setSecurityManager method always throws
a SecurityException. It's easy to miss the current
"@throws SecurityManager always" line when you're reading the
docs.
Change-Id: Id5475bd952bd4e4a27a0058034c1b508b28a4f0f
Diffstat (limited to 'luni/src')
-rw-r--r-- | luni/src/main/java/java/lang/System.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/luni/src/main/java/java/lang/System.java b/luni/src/main/java/java/lang/System.java index c65ebbb..1dcdcbb 100644 --- a/luni/src/main/java/java/lang/System.java +++ b/luni/src/main/java/java/lang/System.java @@ -618,6 +618,8 @@ public final class System { * executing untrusted code and are unsupported on Android. Untrusted code * cannot be safely isolated within a single VM on Android. * + * This method <b>always</b> throws a SecurityException. + * * @param sm a security manager * @throws SecurityException always */ |