Declare the parameters builder correctly.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 17 Mar 2013 10:39:53 +0000 (11:39 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 17 Mar 2013 10:39:53 +0000 (11:39 +0100)
src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Decoder.java
src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Encoder.java
src/main/java/net/pterodactylus/sonitus/data/filter/OggVorbisDecoder.java

index b2d8ea0..cb23259 100644 (file)
@@ -68,7 +68,7 @@ public class LameMp3Decoder extends ExternalMp3Decoder {
 
        @Override
        protected Iterable<String> parameters(Metadata metadata) {
-               ImmutableList.Builder parameters = ImmutableList.builder();
+               ImmutableList.Builder<String> parameters = ImmutableList.builder();
                parameters.add("--mp3input").add("--decode").add("-t");
                if (swapBytes) {
                        parameters.add("-x");
index 98fdd91..85675ce 100644 (file)
@@ -139,7 +139,7 @@ public class LameMp3Encoder extends ExternalMp3Encoder {
 
        @Override
        protected Iterable<String> parameters(Metadata metadata) {
-               ImmutableList.Builder parameters = ImmutableList.builder();
+               ImmutableList.Builder<String> parameters = ImmutableList.builder();
                parameters.add("-r");
                parameters.add("-s").add(String.valueOf(metadata.frequency() / 1000.0));
                if (swapBytes) {
index df1e2f1..2cd9035 100644 (file)
@@ -88,7 +88,7 @@ public class OggVorbisDecoder extends ExternalFilter {
 
        @Override
        protected Iterable<String> parameters(Metadata metadata) {
-               ImmutableList.Builder parameters = ImmutableList.builder();
+               ImmutableList.Builder<String> parameters = ImmutableList.builder();
                parameters.add("-R");
                if (swapBytes) {
                        parameters.add("-e").add("1");