equal
deleted
inserted
replaced
73 |
73 |
74 /** |
74 /** |
75 * Constructs a {@code LinkPermission} with the specified name. |
75 * Constructs a {@code LinkPermission} with the specified name. |
76 * |
76 * |
77 * @param name |
77 * @param name |
78 * The name of the permission. It must be "hard" or "symbolic". |
78 * the name of the permission. It must be "hard" or "symbolic". |
79 * |
79 * |
80 * @throws IllegalArgumentException |
80 * @throws IllegalArgumentException |
81 * If name is empty or invalid. |
81 * if name is empty or invalid |
82 */ |
82 */ |
83 public LinkPermission(String name) { |
83 public LinkPermission(String name) { |
84 super(name); |
84 super(name); |
85 checkName(name); |
85 checkName(name); |
86 } |
86 } |
87 |
87 |
88 /** |
88 /** |
89 * Constructs a {@code LinkPermission} with the specified name. |
89 * Constructs a {@code LinkPermission} with the specified name. |
90 * |
90 * |
91 * @param name |
91 * @param name |
92 * The name of the permission; must be "hard" or "symbolic". |
92 * the name of the permission; must be "hard" or "symbolic". |
93 * @param actions |
93 * @param actions |
94 * The actions for the permission; must be the empty string or |
94 * the actions for the permission; must be the empty string or |
95 * {@code null} |
95 * {@code null} |
96 * |
96 * |
97 * @throws IllegalArgumentException |
97 * @throws IllegalArgumentException |
98 * If name is empty or invalid. |
98 * if name is empty or invalid |
99 */ |
99 */ |
100 public LinkPermission(String name, String actions) { |
100 public LinkPermission(String name, String actions) { |
101 super(name); |
101 super(name); |
102 checkName(name); |
102 checkName(name); |
103 if (actions != null && actions.length() > 0) { |
103 if (actions != null && actions.length() > 0) { |