mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-13 12:55:00 -05:00
Fix Java 8 compatibility
This commit is contained in:
parent
e5f3596347
commit
37bce60df2
@ -188,7 +188,7 @@ public class MainFrame extends JFrame {
|
||||
private static final int SELECTDELAY_ON_DRAG_OVER = 300;
|
||||
|
||||
public PanelSelectionList(List<PanelBuilder> builders) {
|
||||
super(builders.toArray(PanelBuilder[]::new));
|
||||
super(builders.toArray());
|
||||
|
||||
setCellRenderer(new PanelCellRenderer());
|
||||
setPrototypeCellValue(builders.stream().max(comparingInt(p -> p.getName().length())).get());
|
||||
|
Loading…
Reference in New Issue
Block a user