< prev index next >
src/java.desktop/share/classes/javax/sound/sampled/AudioFormat.java
Print this page
@@ -221,11 +221,11 @@
int sampleSizeInBits, int channels,
int frameSize, float frameRate,
boolean bigEndian, Map<String, Object> properties) {
this(encoding, sampleRate, sampleSizeInBits, channels,
frameSize, frameRate, bigEndian);
- this.properties = new HashMap<String, Object>(properties);
+ this.properties = new HashMap<>(properties);
}
/**
* Constructs an {@code AudioFormat} with a linear PCM encoding and the
* given parameters. The frame size is set to the number of bytes required
@@ -590,11 +590,11 @@
public static final Encoding ALAW = new Encoding("ALAW");
/**
* Encoding name.
*/
- private String name;
+ private final String name;
/**
* Constructs a new encoding.
*
* @param name the name of the new type of encoding
< prev index next >