jdk/src/share/classes/javax/sound/sampled/AudioFileFormat.java
changeset 25131 49006bd0e69d
parent 25128 2dfdfa369071
equal deleted inserted replaced
25130:adfaa02ea516 25131:49006bd0e69d
   231      * @return a {@code Map<String, Object>} object containing all properties.
   231      * @return a {@code Map<String, Object>} object containing all properties.
   232      *         If no properties are recognized, an empty map is returned.
   232      *         If no properties are recognized, an empty map is returned.
   233      * @see #getProperty(String)
   233      * @see #getProperty(String)
   234      * @since 1.5
   234      * @since 1.5
   235      */
   235      */
       
   236     @SuppressWarnings("unchecked") // Cast of result of clone
   236     public Map<String, Object> properties() {
   237     public Map<String, Object> properties() {
   237         Map<String,Object> ret;
   238         Map<String,Object> ret;
   238         if (properties == null) {
   239         if (properties == null) {
   239             ret = new HashMap<String,Object>(0);
   240             ret = new HashMap<>(0);
   240         } else {
   241         } else {
   241             ret = (Map<String,Object>) (properties.clone());
   242             ret = (Map<String,Object>) (properties.clone());
   242         }
   243         }
   243         return Collections.unmodifiableMap(ret);
   244         return Collections.unmodifiableMap(ret);
   244     }
   245     }