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

Jean-Noel Rouvignac
19.47.2015 2dc073d0f37048372498e13ffe84455896bac945
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ObjectClassEditorPanel.java
@@ -152,7 +152,7 @@
  public void okClicked()
  {
    String struct = (String)  structural.getSelectedItem();
    TreeSet<String> aux = new TreeSet<String>(auxiliary.getSelectedListModel().getData());
    TreeSet<String> aux = new TreeSet<>(auxiliary.getSelectedListModel().getData());
    aux.add("top");
    ObjectClassValue newValue = new ObjectClassValue(struct, aux);
    valueChanged = !newValue.equals(value);
@@ -172,8 +172,8 @@
    final Schema schema = ev.getNewDescriptor().getSchema();
    if (schema != null)
    {
      final SortedSet<String> auxiliaryOcs = new TreeSet<String>();
      final SortedSet<String> structuralOcs = new TreeSet<String>();
      final SortedSet<String> auxiliaryOcs = new TreeSet<>();
      final SortedSet<String> structuralOcs = new TreeSet<>();
      for (ObjectClass oc : schema.getObjectClasses().values())
      {
        if (oc.getObjectClassType() == ObjectClassType.AUXILIARY)
@@ -210,7 +210,7 @@
          }
          else
          {
            currentAux = new TreeSet<String>();
            currentAux = new TreeSet<>();
          }
          SortableListModel<String> availableListModel =
            auxiliary.getAvailableListModel();
@@ -322,7 +322,7 @@
    gbc.weightx = 1.0;
    gbc.weighty = 1.0;
    gbc.fill = GridBagConstraints.BOTH;
    auxiliary = new AddRemovePanel<String>(String.class);
    auxiliary = new AddRemovePanel<>(String.class);
    gbc.insets.left = 30;
    add(auxiliary, gbc);
  }