force PMD v7
PMD v7: fix new design/SimplifyBooleanReturns matches PMD v7: fix new bestpractices/UnusedAssignment matches PMD v7: fix new bestpractices/LiteralsFirstInComparisons matches PMD v7: fix new codestyle/UnnecessaryFullyQualifiedName matches PMD v7: fix new bestpractices/LooseCoupling matches PMD rules: bestpractices/UseVarargs PMD rules: sort lines
This commit is contained in:
@@ -193,7 +193,7 @@ public class GuiSwing extends JFrame implements Gui {
|
||||
setTitle(title);
|
||||
setSize(WIDTH, 760);
|
||||
|
||||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
setDefaultCloseOperation(EXIT_ON_CLOSE);
|
||||
|
||||
panel = new JPanel();
|
||||
panel.setLayout(new GridBagLayout());
|
||||
@@ -406,7 +406,7 @@ public class GuiSwing extends JFrame implements Gui {
|
||||
if (sysTray != null && SystemTray.isSupported()) {
|
||||
sysTray.remove(trayIcon);
|
||||
setVisible(true);
|
||||
setExtendedState(getExtendedState() & ~JFrame.ICONIFIED & JFrame.NORMAL); // for toFront and requestFocus to actually work
|
||||
setExtendedState(getExtendedState() & ~ICONIFIED & NORMAL); // for toFront and requestFocus to actually work
|
||||
toFront();
|
||||
requestFocus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user