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

Jean-Noel Rouvignac
09.40.2015 edc595e56216e680d268376e85c7625f2f052b6a
opendj-server-legacy/src/main/java/org/opends/server/extensions/JMXAlertHandler.java
@@ -28,6 +28,7 @@
import org.forgerock.i18n.LocalizableMessage;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicLong;
@@ -222,16 +223,10 @@
    for (JMXMBean mBean : mBeans.values())
    {
      MBeanInfo mBeanInfo = mBean.getMBeanInfo();
      for (MBeanNotificationInfo notification: mBeanInfo.getNotifications())
      {
        notifications.add(notification);
      }
      Collections.addAll(notifications, mBeanInfo.getNotifications());
    }
    MBeanNotificationInfo[] notificationArray =
         new MBeanNotificationInfo[notifications.size()];
    notifications.toArray(notificationArray);
    return notificationArray;
    return notifications.toArray(new MBeanNotificationInfo[notifications.size()]);
  }