This list doesn't need to be instantiated like an array

This commit is contained in:
Chris H
2025-01-12 19:25:16 -05:00
committed by Hans Mackowiak
parent 2ce91a04f1
commit 1c0ca26c89

View File

@@ -603,7 +603,7 @@ public class VLobby implements ILobbyView {
public JPanel getConstructedFrame() { return constructedFrame; }
public JPanel getPanelStart() { return pnlStart; }
public List<FDeckChooser> getDeckChoosers() {
List<FDeckChooser> choosers = new ArrayList<>(playerPanels.size());
List<FDeckChooser> choosers = Lists.newArrayList();
for (final PlayerPanel playerPanel : playerPanels) {
choosers.add(playerPanel.getDeckChooser());
}