--- a/jdk/src/share/classes/javax/sound/sampled/AudioFormat.java Thu Jun 05 10:37:24 2014 -0700
+++ b/jdk/src/share/classes/javax/sound/sampled/AudioFormat.java Thu Jun 05 23:17:05 2014 -0700
@@ -388,10 +388,11 @@
* @see #getProperty(String)
* @since 1.5
*/
+ @SuppressWarnings("unchecked") // Cast of result of clone.
public Map<String,Object> properties() {
Map<String,Object> ret;
if (properties == null) {
- ret = new HashMap<String,Object>(0);
+ ret = new HashMap<>(0);
} else {
ret = (Map<String,Object>) (properties.clone());
}