--- old/src/share/classes/sun/audio/AudioDevice.java 2014-05-16 09:45:48.000000000 -0700 +++ new/src/share/classes/sun/audio/AudioDevice.java 2014-05-16 09:45:48.000000000 -0700 @@ -58,10 +58,7 @@ private boolean DEBUG = false /*true*/ ; - /** Hashtable of audio clips / input streams. */ - private Hashtable clipStreams; - - private Vector infos; + private Vector infos; /** Are we currently playing audio? */ private boolean playing = false; @@ -81,9 +78,7 @@ * Create an AudioDevice instance. */ private AudioDevice() { - - clipStreams = new Hashtable(); - infos = new Vector(); + infos = new Vector<>(); } @@ -161,7 +156,7 @@ // is this already playing? if so, then just return for(int i=0; i(); } /** --- old/src/share/classes/sun/audio/AudioPlayer.java 2014-05-16 09:45:48.000000000 -0700 +++ new/src/share/classes/sun/audio/AudioPlayer.java 2014-05-16 09:45:48.000000000 -0700 @@ -92,18 +92,16 @@ private static AudioPlayer getAudioPlayer() { if(DEBUG) { System.out.println("> AudioPlayer.getAudioPlayer()"); } - AudioPlayer audioPlayer; - PrivilegedAction action = new PrivilegedAction() { - public Object run() { - Thread t = new AudioPlayer(); + PrivilegedAction action = new PrivilegedAction() { + public AudioPlayer run() { + AudioPlayer t = new AudioPlayer(); t.setPriority(MAX_PRIORITY); t.setDaemon(true); t.start(); return t; } }; - audioPlayer = (AudioPlayer) AccessController.doPrivileged(action); - return audioPlayer; + return AccessController.doPrivileged(action); } /** --- old/src/share/classes/sun/audio/AudioStreamSequence.java 2014-05-16 09:45:49.000000000 -0700 +++ new/src/share/classes/sun/audio/AudioStreamSequence.java 2014-05-16 09:45:49.000000000 -0700 @@ -44,16 +44,11 @@ * @author Arthur van Hoff */ public final class AudioStreamSequence extends SequenceInputStream { - - Enumeration e; - InputStream in; - /** * Create an AudioStreamSequence given an * enumeration of streams. */ - public AudioStreamSequence(Enumeration e) { + public AudioStreamSequence(Enumeration e) { super(e); } - - } +}