src/share/classes/javax/sound/sampled/AudioFormat.java
Print this page
*** 386,399 ****
* @return a {@code Map<String, Object>} object containing all properties.
* If no properties are recognized, an empty map is returned.
* @see #getProperty(String)
* @since 1.5
*/
public Map<String,Object> properties() {
Map<String,Object> ret;
if (properties == null) {
! ret = new HashMap<String,Object>(0);
} else {
ret = (Map<String,Object>) (properties.clone());
}
return Collections.unmodifiableMap(ret);
}
--- 386,400 ----
* @return a {@code Map<String, Object>} object containing all properties.
* If no properties are recognized, an empty map is returned.
* @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<>(0);
} else {
ret = (Map<String,Object>) (properties.clone());
}
return Collections.unmodifiableMap(ret);
}