8034046: Fix serial lint warnings in javax.sound
authordarcy
Mon, 10 Feb 2014 08:53:13 -0800
changeset 22949 459e9fe0bbf8
parent 22948 2cf7e7202386
child 22950 8d8e9ffdf855
8034046: Fix serial lint warnings in javax.sound Reviewed-by: alanb, serb
jdk/src/share/classes/javax/sound/midi/InvalidMidiDataException.java
jdk/src/share/classes/javax/sound/midi/MidiUnavailableException.java
jdk/src/share/classes/javax/sound/sampled/AudioPermission.java
jdk/src/share/classes/javax/sound/sampled/LineEvent.java
jdk/src/share/classes/javax/sound/sampled/LineUnavailableException.java
jdk/src/share/classes/javax/sound/sampled/UnsupportedAudioFileException.java
--- a/jdk/src/share/classes/javax/sound/midi/InvalidMidiDataException.java	Mon Feb 10 14:35:42 2014 +0000
+++ b/jdk/src/share/classes/javax/sound/midi/InvalidMidiDataException.java	Mon Feb 10 08:53:13 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2002, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -39,6 +39,7 @@
  * @author Kara Kytle
  */
 public class InvalidMidiDataException extends Exception {
+    private static final long serialVersionUID = 2780771756789932067L;
 
     /**
      * Constructs an <code>InvalidMidiDataException</code> with
@@ -49,7 +50,6 @@
         super();
     }
 
-
     /**
      *  Constructs an <code>InvalidMidiDataException</code> with the
      * specified detail message.
--- a/jdk/src/share/classes/javax/sound/midi/MidiUnavailableException.java	Mon Feb 10 14:35:42 2014 +0000
+++ b/jdk/src/share/classes/javax/sound/midi/MidiUnavailableException.java	Mon Feb 10 08:53:13 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2002, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -39,6 +39,7 @@
  * @author Kara Kytle
  */
 public class MidiUnavailableException extends Exception {
+    private static final long serialVersionUID = 6093809578628944323L;
 
     /**
      * Constructs a <code>MidiUnavailableException</code> that has
@@ -49,7 +50,6 @@
         super();
     }
 
-
     /**
      *  Constructs a <code>MidiUnavailableException</code> with the
      * specified detail message.
--- a/jdk/src/share/classes/javax/sound/sampled/AudioPermission.java	Mon Feb 10 14:35:42 2014 +0000
+++ b/jdk/src/share/classes/javax/sound/sampled/AudioPermission.java	Mon Feb 10 08:53:13 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -27,7 +27,6 @@
 
 import java.security.BasicPermission;
 
-
 /**
  * The <code>AudioPermission</code> class represents access rights to the audio
  * system resources.  An <code>AudioPermission</code> contains a target name
@@ -76,134 +75,8 @@
  * @author Kara Kytle
  * @since 1.3
  */
-/*
- * (OLD PERMISSIONS TAKEN OUT FOR 1.2 BETA)
- *
- * <tr>
- * <td>playback device access</td>
- * <td>Direct access to the audio playback device(s), including configuration of the
- * playback format, volume, and balance, explicit opening and closing of the device,
- * etc.</td>
- * <td>Changes the properties of a shared system device and therefore
- * can affect other applications.</td>
- * </tr>
- *
- * <tr>
- * <td>playback device override</td>
- * <td>Manipulation of the audio playback device(s) in a way that directly conflicts
- * with use by other applications.  This includes closing the device while it is in
- * use by another application, changing the device format while another application
- * is using it, etc. </td>
- * <td>Changes the properties of a shared system device and therefore
- * can affect other applications.</td>
- * </tr>
- *
- * <tr>
- * <td>record device access</td>
- * <td>Direct access to the audio recording device(s), including configuration of the
- * the record format, volume, and balance, explicit opening and closing of the device,
- * etc.</td>
- * <td>Changes the properties of a shared system device and therefore
- * can affect other applications.</td>
- * </tr>
- *
- * <tr>
- * <td>record device override</td>
- * <td>Manipulation of the audio recording device(s) in a way that directly conflicts
- * with use by other applications.  This includes closing the device while it is in
- * use by another application, changing the device format while another application
- * is using it, etc. </td>
- * <td>Changes the properties of a shared system device and therefore
- * can affect other applications.</td>
- * </tr>
- *
- * </table>
- *<p>
- *
- * @author Kara Kytle
- * @since 1.3
- */
-
-/*
- * The <code>AudioPermission</code> class represents access rights to the audio
- * system resources.  An <code>AudioPermission</code> contains a target name
- * but no actions list; you either have the named permission or you don't.
- * <p>
- * 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.
- * <p>
- * The following table lists all 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.
- * <p>
- *
- * <table border=1 cellpadding=5>
- * <tr>
- * <th>Permission Target Name</th>
- * <th>What the Permission Allows</th>
- * <th>Risks of Allowing this Permission</th>
- * </tr>
- *
- * <tr>
- * <td>play</td>
- * <td>Audio playback through the audio device or devices on the system.</td>
- * <td>Allows the application to use a system device.  Can affect other applications,
- * because the result will be mixed with other audio being played on the system.</td>
- *</tr>
- *
- * <tr>
- * <td>record</td>
- * <td>Recording audio from the audio device or devices on the system,
- * commonly through a microphone.</td>
- * <td>Can enable an applet or application to eavesdrop on a user.</td>
- * </tr>
- *
- * <tr>
- * <td>playback device access</td>
- * <td>Direct access to the audio playback device(s), including configuration of the
- * playback format, volume, and balance, explicit opening and closing of the device,
- * etc.</td>
- * <td>Changes the properties of a shared system device and therefore
- * can affect other applications.</td>
- * </tr>
- *
- * <tr>
- * <td>playback device override</td>
- * <td>Manipulation of the audio playback device(s) in a way that directly conflicts
- * with use by other applications.  This includes closing the device while it is in
- * use by another application, changing the device format while another application
- * is using it, etc. </td>
- * <td>Changes the properties of a shared system device and therefore
- * can affect other applications.</td>
- * </tr>
- *
- * <tr>
- * <td>record device access</td>
- * <td>Direct access to the audio recording device(s), including configuration of the
- * the record format, volume, and balance, explicit opening and closing of the device,
- * etc.</td>
- * <td>Changes the properties of a shared system device and therefore
- * can affect other applications.</td>
- * </tr>
- *
- * <tr>
- * <td>record device override</td>
- * <td>Manipulation of the audio recording device(s) in a way that directly conflicts
- * with use by other applications.  This includes closing the device while it is in
- * use by another application, changing the device format while another application
- * is using it, etc. </td>
- * <td>Changes the properties of a shared system device and therefore
- * can affect other applications.</td>
- * </tr>
- *
- * </table>
- *<p>
- *
- * @author Kara Kytle
- */
-
 public class AudioPermission extends BasicPermission {
+    private static final long serialVersionUID = -5518053473477801126L;
 
     /**
      * Creates a new <code>AudioPermission</code> object that has the specified
--- a/jdk/src/share/classes/javax/sound/sampled/LineEvent.java	Mon Feb 10 14:35:42 2014 +0000
+++ b/jdk/src/share/classes/javax/sound/sampled/LineEvent.java	Mon Feb 10 08:53:13 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -46,6 +46,7 @@
  * @serial exclude
  */
 public class LineEvent extends java.util.EventObject {
+    private static final long serialVersionUID = -1274246333383880410L;
 
     // INSTANCE VARIABLES
 
--- a/jdk/src/share/classes/javax/sound/sampled/LineUnavailableException.java	Mon Feb 10 14:35:42 2014 +0000
+++ b/jdk/src/share/classes/javax/sound/sampled/LineUnavailableException.java	Mon Feb 10 08:53:13 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2002, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -44,6 +44,7 @@
  */
 
 public class LineUnavailableException extends Exception {
+    private static final long serialVersionUID = -2046718279487432130L;
 
     /**
      * Constructs a <code>LineUnavailableException</code> that has
@@ -54,7 +55,6 @@
         super();
     }
 
-
     /**
      * Constructs a <code>LineUnavailableException</code> that has
      * the specified detail message.
--- a/jdk/src/share/classes/javax/sound/sampled/UnsupportedAudioFileException.java	Mon Feb 10 14:35:42 2014 +0000
+++ b/jdk/src/share/classes/javax/sound/sampled/UnsupportedAudioFileException.java	Mon Feb 10 08:53:13 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2002, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -33,15 +33,8 @@
  * @author Kara Kytle
  * @since 1.3
  */
-/*
- * An <code>UnsupportedAudioFileException</code> is an exception indicating that an
- * operation failed because a file did not contain valid data of a recognized file
- * type and format.
- *
- * @author Kara Kytle
- */
-
 public class UnsupportedAudioFileException extends Exception {
+    private static final long serialVersionUID = -139127412623160368L;
 
     /**
      * Constructs a <code>UnsupportedAudioFileException</code> that has
@@ -52,7 +45,6 @@
         super();
     }
 
-
     /**
      * Constructs a <code>UnsupportedAudioFileException</code> that has
      * the specified detail message.