Skip to content

Commit 3b2e39b

Browse files
1023: Code refactoring
1 parent 676c5d6 commit 3b2e39b

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Run automated tests
55

66
on:
77
pull_request:
8-
branches: [ master, '*-develop', 'mainline*' ]
8+
branches: [ master, 4.3.0-develop ]
99

1010
jobs:
1111
build-linux:

src/com/magento/idea/magento2uct/ui/ConfigurationDialog.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@
2727
import java.awt.event.WindowAdapter;
2828
import java.awt.event.WindowEvent;
2929
import java.util.Objects;
30-
import javax.swing.*;
30+
import javax.swing.JButton;
31+
import javax.swing.JCheckBox;
32+
import javax.swing.JComboBox;
33+
import javax.swing.JComponent;
34+
import javax.swing.JLabel;
35+
import javax.swing.JPanel;
36+
import javax.swing.KeyStroke;
3137
import org.jetbrains.annotations.NotNull;
3238

3339
@SuppressWarnings({"PMD.TooManyFields", "PMD.ExcessiveImports"})
@@ -40,7 +46,7 @@ public class ConfigurationDialog extends AbstractDialog {
4046
private LabeledComponent<TextFieldWithBrowseButton> modulePath;
4147
private LabeledComponent<TextFieldWithBrowseButton> additionalPath;
4248
private JCheckBox ignoreCurrentVersion;
43-
private JCheckBox hasAdditionalPath;
49+
private JCheckBox hasAdditionalPath;//NOPMD
4450
private JComboBox<ComboBoxItemData> currentVersion;
4551
private JComboBox<ComboBoxItemData> targetVersion;
4652
private JComboBox<ComboBoxItemData> issueSeverityLevel;
@@ -74,7 +80,8 @@ public ConfigurationDialog(final @NotNull Project project) {
7480
setTitle(ConfigureUctAction.ACTION_NAME);
7581
getRootPane().setDefaultButton(buttonOk);
7682

77-
hasAdditionalPath.addActionListener(event -> refreshAdditionalFields(hasAdditionalPath.isSelected()));
83+
hasAdditionalPath.addActionListener(event ->
84+
refreshAdditionalFields(hasAdditionalPath.isSelected()));
7885
buttonOk.addActionListener(event -> onOK());
7986
buttonCancel.addActionListener(event -> onCancel());
8087

@@ -121,6 +128,7 @@ public static void open(final @NotNull Project project) {
121128
/**
122129
* Save configuration.
123130
*/
131+
@SuppressWarnings("PMD.CyclomaticComplexity")
124132
private void onOK() {
125133
modulePathError.setText("");
126134
additionalPathError.setText("");

0 commit comments

Comments
 (0)