diff --git a/src/main/java/net/knarcraft/ffmpegconverter/converter/AudioConverter.java b/src/main/java/net/knarcraft/ffmpegconverter/converter/AudioConverter.java index 999a452..b7f4b99 100644 --- a/src/main/java/net/knarcraft/ffmpegconverter/converter/AudioConverter.java +++ b/src/main/java/net/knarcraft/ffmpegconverter/converter/AudioConverter.java @@ -13,19 +13,19 @@ import java.util.List; * A converter for converting audio files */ public class AudioConverter extends AbstractConverter { - private final String newExt; + private final String newExtension; /** * Instantiates a new audio converter * * @param ffprobePath

Path/command to ffprobe.

* @param ffmpegPath

Path/command to ffmpeg.

- * @param newExt

The extension of the new file.

+ * @param newExtension

The extension of the new file.

*/ - public AudioConverter(String ffprobePath, String ffmpegPath, String newExt) { + public AudioConverter(String ffprobePath, String ffmpegPath, String newExtension) { this.ffprobePath = ffprobePath; this.ffmpegPath = ffmpegPath; - this.newExt = newExt; + this.newExtension = newExtension; } /** @@ -76,6 +76,6 @@ public class AudioConverter extends AbstractConverter { @Override public void convert(File file) throws IOException { - processFile(file.getParentFile(), file, newExt); + processFile(file.getParentFile(), file, newExtension); } } \ No newline at end of file diff --git a/src/main/java/net/knarcraft/ffmpegconverter/utility/ListUtil.java b/src/main/java/net/knarcraft/ffmpegconverter/utility/ListUtil.java index 638180e..441c273 100644 --- a/src/main/java/net/knarcraft/ffmpegconverter/utility/ListUtil.java +++ b/src/main/java/net/knarcraft/ffmpegconverter/utility/ListUtil.java @@ -40,6 +40,7 @@ public final class ListUtil { * @return

A new list containing all matching elements.

*/ static List getMatching(List list, Predicate predicate) { + list = new ArrayList<>(list); List copy = new ArrayList<>(list); list.removeIf(predicate); copy.removeAll(list);