--- old/src/java.desktop/share/classes/javax/sound/sampled/AudioFormat.java 2016-08-12 17:03:17.000000000 +0300 +++ new/src/java.desktop/share/classes/javax/sound/sampled/AudioFormat.java 2016-08-12 17:03:16.000000000 +0300 @@ -223,7 +223,7 @@ boolean bigEndian, Map properties) { this(encoding, sampleRate, sampleSizeInBits, channels, frameSize, frameRate, bigEndian); - this.properties = new HashMap(properties); + this.properties = new HashMap<>(properties); } /** @@ -592,7 +592,7 @@ /** * Encoding name. */ - private String name; + private final String name; /** * Constructs a new encoding.