Skip to content

Commit 0ed8021

Browse files
author
banzhe
committed
feat: make idea happy
1 parent 11f00d1 commit 0ed8021

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/io/github/linyimin/plugin/ui/DatasourceDialog.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public class DatasourceDialog extends JDialog {
3737
private JButton addConfiguration;
3838
private JButton deleteButton;
3939

40-
private JTextField nameText;
41-
private JComboBox<String> nameComboBox;
40+
private final JTextField nameText = new JTextField();
41+
private final JComboBox<String> nameComboBox = new ComboBox<>();
4242

4343
private final Project project;
4444
private final BackgroundTaskQueue backgroundTaskQueue;
@@ -55,8 +55,6 @@ public DatasourceDialog(Project project) {
5555
setLocationRelativeTo(null);
5656
getRootPane().setDefaultButton(saveConfiguration);
5757

58-
nameComboBox = new ComboBox<>();
59-
nameText = new JTextField();
6058
namePanel.setLayout(new BorderLayout());
6159

6260
host.getDocument().addDocumentListener(new DatasourceChangeListener());

0 commit comments

Comments
 (0)