--- old/src/share/classes/javax/sound/sampled/AudioPermission.java 2014-06-01 18:59:12.000000000 +0400
+++ new/src/share/classes/javax/sound/sampled/AudioPermission.java 2014-06-01 18:59:11.000000000 +0400
@@ -28,18 +28,18 @@
import java.security.BasicPermission;
/**
- * The AudioPermission
class represents access rights to the audio
- * system resources. An AudioPermission
contains a target name
- * but no actions list; you either have the named permission or you don't.
+ * The {@code AudioPermission} class represents access rights to the audio
+ * system resources. An {@code AudioPermission} contains a target name but no
+ * actions list; you either have the named permission or you don't.
*
* The target name is the name of the audio permission (see the table below). - * The names follow the hierarchical property-naming convention. Also, an asterisk - * can be used to represent all the audio permissions. + * The names follow the hierarchical property-naming convention. Also, an + * asterisk can be used to represent all the audio permissions. *
- * The following table lists the possible AudioPermission
target names.
- * For each name, the table provides a description of exactly what that permission
- * allows, as well as a discussion of the risks of granting code the permission.
- *
+ * The following table lists the possible {@code AudioPermission} target names.
+ * For each name, the table provides a description of exactly what that
+ * permission allows, as well as a discussion of the risks of granting code the
+ * permission.
*
*
record | @@ -68,42 +68,40 @@ * applications because manipulation of a mixer affects the audio for all lines * using that mixer. * This permission can enable an applet or application to eavesdrop on a user. - *
+ *
+ *
*
* @author Kara Kytle
* @since 1.3
*/
public class AudioPermission extends BasicPermission {
+
private static final long serialVersionUID = -5518053473477801126L;
/**
- * Creates a new AudioPermission
object that has the specified
- * symbolic name, such as "play" or "record". An asterisk can be used to indicate
- * all audio permissions.
- * @param name the name of the new AudioPermission
+ * Creates a new {@code AudioPermission} object that has the specified
+ * symbolic name, such as "play" or "record". An asterisk can be used to
+ * indicate all audio permissions.
*
- * @throws NullPointerException if name
is null
.
- * @throws IllegalArgumentException if name
is empty.
+ * @param name the name of the new {@code AudioPermission}
+ * @throws NullPointerException if {@code name} is {@code null}
+ * @throws IllegalArgumentException if {@code name} is empty
*/
- public AudioPermission(String name) {
-
+ public AudioPermission(final String name) {
super(name);
}
/**
- * Creates a new AudioPermission
object that has the specified
- * symbolic name, such as "play" or "record". The actions
- * parameter is currently unused and should be null
.
- * @param name the name of the new AudioPermission
- * @param actions (unused; should be null
)
+ * Creates a new {@code AudioPermission} object that has the specified
+ * symbolic name, such as "play" or "record". The {@code actions} parameter
+ * is currently unused and should be {@code null}.
*
- * @throws NullPointerException if name
is null
.
- * @throws IllegalArgumentException if name
is empty.
+ * @param name the name of the new {@code AudioPermission}
+ * @param actions (unused; should be {@code null})
+ * @throws NullPointerException if {@code name} is {@code null}
+ * @throws IllegalArgumentException if {@code name} is empty
*/
- public AudioPermission(String name, String actions) {
-
+ public AudioPermission(final String name, final String actions) {
super(name, actions);
}
}