From 37bce60df25b40fd8afae685e8f1e0d93347c5b1 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 26 Feb 2019 12:55:03 +0700 Subject: [PATCH] Fix Java 8 compatibility --- source/net/filebot/ui/MainFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/ui/MainFrame.java b/source/net/filebot/ui/MainFrame.java index 14b39401..5a43498c 100644 --- a/source/net/filebot/ui/MainFrame.java +++ b/source/net/filebot/ui/MainFrame.java @@ -188,7 +188,7 @@ public class MainFrame extends JFrame { private static final int SELECTDELAY_ON_DRAG_OVER = 300; public PanelSelectionList(List builders) { - super(builders.toArray(PanelBuilder[]::new)); + super(builders.toArray()); setCellRenderer(new PanelCellRenderer()); setPrototypeCellValue(builders.stream().max(comparingInt(p -> p.getName().length())).get());