forked from External/mage
Big refactoring
I used Intellij IDEA to automatically refactor code to achive 3 goals. 1) get rid of anonymouse classes, and replace the with lamba to get more readeable and clean code (like in TableWaitingDialog). 2) make effectively final variables actually final to avoid inadvertent changes on it in further releases and keep objects as immutable, as possible. 3) Get rid of unused imports (most of the changes) in whole project classes.
This commit is contained in:
parent
a9f2c8c407
commit
076840df53
247 changed files with 1919 additions and 3682 deletions
|
|
@ -30,8 +30,6 @@ package mage.client.dialog;
|
|||
import java.awt.BorderLayout;
|
||||
import java.awt.Component;
|
||||
import java.awt.Point;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.util.UUID;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JLayeredPane;
|
||||
|
|
@ -69,12 +67,7 @@ public class PickPileDialog extends MageDialog {
|
|||
panel.add(pile1, BorderLayout.CENTER);
|
||||
|
||||
JButton btnChoosePile1 = new JButton("Pile 1");
|
||||
btnChoosePile1.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
btnPile1ActionPerformed(e);
|
||||
}
|
||||
});
|
||||
btnChoosePile1.addActionListener(e -> btnPile1ActionPerformed(e));
|
||||
panel.add(btnChoosePile1, BorderLayout.NORTH);
|
||||
|
||||
JPanel panel_1 = new JPanel();
|
||||
|
|
@ -85,12 +78,7 @@ public class PickPileDialog extends MageDialog {
|
|||
panel_1.add(pile2, BorderLayout.CENTER);
|
||||
|
||||
JButton btnChoosePile2 = new JButton("Pile 2");
|
||||
btnChoosePile2.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
btnPile2ActionPerformed(e);
|
||||
}
|
||||
});
|
||||
btnChoosePile2.addActionListener(e -> btnPile2ActionPerformed(e));
|
||||
panel_1.add(btnChoosePile2, BorderLayout.NORTH);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue