From: David ‘Bombe’ Roden Date: Mon, 3 Jun 2013 20:25:14 +0000 (+0200) Subject: Declare the current samples array as final. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=85c3caaa2ef0c403b4083e8d079ce46fecbf8f7c;p=sonitus.git Declare the current samples array as final. --- diff --git a/src/main/java/net/pterodactylus/sonitus/io/ProcessingOutputStream.java b/src/main/java/net/pterodactylus/sonitus/io/ProcessingOutputStream.java index ded9df1..9afc1f5 100644 --- a/src/main/java/net/pterodactylus/sonitus/io/ProcessingOutputStream.java +++ b/src/main/java/net/pterodactylus/sonitus/io/ProcessingOutputStream.java @@ -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;