Skip to content

Commit d775553

Browse files
author
Vitaliy Boyko
committed
Static fixes
1 parent 9fc3b44 commit d775553

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/com/magento/idea/magento2plugin/actions/generation/dialog/NewCustomerEavAttributeDialog.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
import java.awt.event.ItemEvent;
2323
import java.awt.event.ItemListener;
2424
import java.util.List;
25-
import javax.swing.*;
25+
import javax.swing.JButton;
26+
import javax.swing.JCheckBox;
27+
import javax.swing.JComboBox;
28+
import javax.swing.JLabel;
29+
import javax.swing.JPanel;
30+
import javax.swing.JTable;
31+
import javax.swing.JTextField;
2632

2733
@SuppressWarnings({
2834
"PMD.TooManyFields",
@@ -237,7 +243,7 @@ private CustomerEntityData populateCategoryEntityData(
237243
useInAdminhtmlCustomerCheckBox.isSelected()
238244
);
239245
customerEntityData.setUseInAdminhtmlCheckoutForm(
240-
useInAdminhtmlCheckoutCheckBox.isSelected()
246+
useInAdminhtmlCheckoutCheckBox.isSelected()
241247
);
242248
customerEntityData.setUseInCustomerAccountCreateForm(
243249
useInCustomerAccountCreateCheckBox.isSelected()
@@ -269,8 +275,10 @@ protected void addOptionPanelListener(
269275
attributeSourceComboBox.addItemListener(new ItemListener() {
270276
@Override
271277
public void itemStateChanged(final ItemEvent itemEvent) {
272-
final ComboBoxItemData selectedInputItem = (ComboBoxItemData) attributeInputComboBox.getSelectedItem();
273-
final String selectedInput = selectedInputItem == null ? "" : selectedInputItem.toString();
278+
final ComboBoxItemData selectedInputItem =
279+
(ComboBoxItemData) attributeInputComboBox.getSelectedItem();
280+
final String selectedInput = selectedInputItem == null
281+
? "" : selectedInputItem.toString();
274282
final boolean isAllowedInput =
275283
AttributeInput.SELECT.getInput().equals(selectedInput)
276284
|| AttributeInput.MULTISELECT.getInput().equals(selectedInput);
@@ -324,7 +332,7 @@ public void itemStateChanged(final ItemEvent itemEvent) {
324332
});
325333
}
326334

327-
private void createUIComponents() {
335+
private void createUIComponents() { //NOPMD - suppressed UnusedPrivateMethod
328336
// TODO: place custom component creation code here
329337
}
330338
}

0 commit comments

Comments
 (0)