提交 f33f51ad 编写于 作者: L lancea

7036251: Correct SQLPermission constructor javadocs for permission target names

Reviewed-by: alanb
上级 733e5e7a
...@@ -116,11 +116,11 @@ public final class SQLPermission extends BasicPermission { ...@@ -116,11 +116,11 @@ public final class SQLPermission extends BasicPermission {
/** /**
* Creates a new <code>SQLPermission</code> object with the specified name. * Creates a new <code>SQLPermission</code> object with the specified name.
* The name is the symbolic name of the <code>SQLPermission</code>; currently, * The name is the symbolic name of the <code>SQLPermission</code>.
* the only name allowed is "setLog".
* *
* @param name the name of this <code>SQLPermission</code> object, which must * @param name the name of this <code>SQLPermission</code> object, which must
* be <code>setLog</code> * be either {@code setLog}, {@code callAbort}, {@code setSyncFactory},
* or {@code setNetworkTimeout}
* @throws NullPointerException if <code>name</code> is <code>null</code>. * @throws NullPointerException if <code>name</code> is <code>null</code>.
* @throws IllegalArgumentException if <code>name</code> is empty. * @throws IllegalArgumentException if <code>name</code> is empty.
...@@ -134,10 +134,11 @@ public final class SQLPermission extends BasicPermission { ...@@ -134,10 +134,11 @@ public final class SQLPermission extends BasicPermission {
* Creates a new <code>SQLPermission</code> object with the specified name. * Creates a new <code>SQLPermission</code> object with the specified name.
* The name is the symbolic name of the <code>SQLPermission</code>; the * The name is the symbolic name of the <code>SQLPermission</code>; the
* actions <code>String</code> is currently unused and should be * actions <code>String</code> is currently unused and should be
* <code>null</code>. * <code>null</code>.
* *
* @param name the name of this <code>SQLPermission</code> object, which must * @param name the name of this <code>SQLPermission</code> object, which must
* be <code>setLog</code> * be either {@code setLog}, {@code callAbort}, {@code setSyncFactory},
* or {@code setNetworkTimeout}
* @param actions should be <code>null</code> * @param actions should be <code>null</code>
* @throws NullPointerException if <code>name</code> is <code>null</code>. * @throws NullPointerException if <code>name</code> is <code>null</code>.
* @throws IllegalArgumentException if <code>name</code> is empty. * @throws IllegalArgumentException if <code>name</code> is empty.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册