mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noël Rouvignac
10.54.2016 e55ac3f6412e50890bd81a42aeddaa3ac1db6952
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/NewAttributePanel.java
@@ -66,10 +66,7 @@
import org.opends.server.util.ServerConstants;
import org.opends.server.util.StaticUtils;
/**
 * The panel displayed when the user wants to define a new attribute in the
 * schema.
 */
/** The panel displayed when the user wants to define a new attribute in the schema. */
public class NewAttributePanel extends StatusGenericPanel
{
  private static final long serialVersionUID = 2340170241535771321L;
@@ -227,10 +224,10 @@
        availableMatchingRules.add(matchingRuleNameMap.get(key));
      }
      final JComboBox[] combos = { approximate, equality, ordering, substring };
      for (JComboBox combo : combos)
      final JComboBox<?>[] combos = { approximate, equality, ordering, substring };
      for (JComboBox<?> combo : combos)
      {
        final DefaultComboBoxModel model = (DefaultComboBoxModel) combo.getModel();
        final DefaultComboBoxModel<?> model = (DefaultComboBoxModel<?>) combo.getModel();
        final List<Object> el = new ArrayList<Object>(availableMatchingRules);
        el.add(0, model.getSize() == 0 ? NO_MATCHING_RULE : model.getElementAt(0));
        updateComboBoxModel(el, model);