|
22 | 22 | import java.awt.event.ItemEvent; |
23 | 23 | import java.awt.event.ItemListener; |
24 | 24 | 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; |
26 | 32 |
|
27 | 33 | @SuppressWarnings({ |
28 | 34 | "PMD.TooManyFields", |
@@ -237,7 +243,7 @@ private CustomerEntityData populateCategoryEntityData( |
237 | 243 | useInAdminhtmlCustomerCheckBox.isSelected() |
238 | 244 | ); |
239 | 245 | customerEntityData.setUseInAdminhtmlCheckoutForm( |
240 | | - useInAdminhtmlCheckoutCheckBox.isSelected() |
| 246 | + useInAdminhtmlCheckoutCheckBox.isSelected() |
241 | 247 | ); |
242 | 248 | customerEntityData.setUseInCustomerAccountCreateForm( |
243 | 249 | useInCustomerAccountCreateCheckBox.isSelected() |
@@ -269,8 +275,10 @@ protected void addOptionPanelListener( |
269 | 275 | attributeSourceComboBox.addItemListener(new ItemListener() { |
270 | 276 | @Override |
271 | 277 | 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(); |
274 | 282 | final boolean isAllowedInput = |
275 | 283 | AttributeInput.SELECT.getInput().equals(selectedInput) |
276 | 284 | || AttributeInput.MULTISELECT.getInput().equals(selectedInput); |
@@ -324,7 +332,7 @@ public void itemStateChanged(final ItemEvent itemEvent) { |
324 | 332 | }); |
325 | 333 | } |
326 | 334 |
|
327 | | - private void createUIComponents() { |
| 335 | + private void createUIComponents() { //NOPMD - suppressed UnusedPrivateMethod |
328 | 336 | // TODO: place custom component creation code here |
329 | 337 | } |
330 | 338 | } |
0 commit comments