From acbe8c9354d404ea70078e19b38c929c8fd8e73d Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 29 Jul 2014 09:08:35 +0000 Subject: [PATCH] * JDK7 compatibility --- source/net/filebot/format/MediaBindingBean.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index ab8b537d..644209b0 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -1,6 +1,7 @@ package net.filebot.format; import static java.util.Arrays.*; +import static java.util.Collections.*; import static net.filebot.MediaTypes.*; import static net.filebot.format.Define.*; import static net.filebot.format.ExpressionFormatMethods.*; @@ -818,7 +819,7 @@ public class MediaBindingBean { // still no good match found -> just take the most probable video from the same folder if (videos.size() > 0) { - videos.sort(new SimilarityComparator(FileUtilities.getName(mediaFile)) { + sort(videos, new SimilarityComparator(FileUtilities.getName(mediaFile)) { @Override public int compare(Object o1, Object o2) {