Performance pass 1 (Fix array size)

This commit is contained in:
Andrew
2020-10-15 22:42:44 -07:00
parent c84c462aeb
commit f8f8b884bc
7 changed files with 10 additions and 10 deletions

View File

@@ -298,7 +298,7 @@ public class NoiseExplorer extends JPanel implements MouseWheelListener
NoiseExplorer nv = new NoiseExplorer();
frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
KList<String> li = new KList<NoiseStyle>(NoiseStyle.values()).toStringList();
combo = new JComboBox<String>(li.toArray(new String[li.size()]));
combo = new JComboBox<String>(li.toArray(new String[0]));
combo.setSelectedItem("STATIC");
combo.setFocusable(false);
combo.addActionListener(new ActionListener()