equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
99 |
99 |
100 /* code was borrowed originally from java.lang.RuntimePermission. */ |
100 /* code was borrowed originally from java.lang.RuntimePermission. */ |
101 |
101 |
102 public final class SerializablePermission extends BasicPermission { |
102 public final class SerializablePermission extends BasicPermission { |
103 |
103 |
|
104 @java.io.Serial |
104 private static final long serialVersionUID = 8537212141160296410L; |
105 private static final long serialVersionUID = 8537212141160296410L; |
105 |
106 |
106 /** |
107 /** |
107 * @serial |
108 * @serial |
108 */ |
109 */ |
113 * The name is the symbolic name of the SerializablePermission, such as |
114 * The name is the symbolic name of the SerializablePermission, such as |
114 * "enableSubstitution", etc. |
115 * "enableSubstitution", etc. |
115 * |
116 * |
116 * @param name the name of the SerializablePermission. |
117 * @param name the name of the SerializablePermission. |
117 * |
118 * |
118 * @throws NullPointerException if <code>name</code> is <code>null</code>. |
119 * @throws NullPointerException if {@code name} is {@code null}. |
119 * @throws IllegalArgumentException if <code>name</code> is empty. |
120 * @throws IllegalArgumentException if {@code name} is empty. |
120 */ |
121 */ |
121 public SerializablePermission(String name) |
122 public SerializablePermission(String name) |
122 { |
123 { |
123 super(name); |
124 super(name); |
124 } |
125 } |
129 * actions String is currently unused and should be null. |
130 * actions String is currently unused and should be null. |
130 * |
131 * |
131 * @param name the name of the SerializablePermission. |
132 * @param name the name of the SerializablePermission. |
132 * @param actions currently unused and must be set to null |
133 * @param actions currently unused and must be set to null |
133 * |
134 * |
134 * @throws NullPointerException if <code>name</code> is <code>null</code>. |
135 * @throws NullPointerException if {@code name} is {@code null}. |
135 * @throws IllegalArgumentException if <code>name</code> is empty. |
136 * @throws IllegalArgumentException if {@code name} is empty. |
136 */ |
137 */ |
137 |
138 |
138 public SerializablePermission(String name, String actions) |
139 public SerializablePermission(String name, String actions) |
139 { |
140 { |
140 super(name, actions); |
141 super(name, actions); |