Declare the current samples array as final.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 3 Jun 2013 20:25:14 +0000 (22:25 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 4 Jun 2013 04:21:45 +0000 (06:21 +0200)
src/main/java/net/pterodactylus/sonitus/io/ProcessingOutputStream.java

index ded9df1..9afc1f5 100644 (file)
@@ -33,7 +33,7 @@ public abstract class ProcessingOutputStream extends FilterOutputStream {
        private final int channels;
 
        /** The current sample’s channel values. */
-       private int[] currentSamples;
+       private final int[] currentSamples;
 
        /** The index of the current channel. */
        private int currentSampleIndex;