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

Matthew Swift
19.51.2013 cc436fb6ca1ea44d70f62777855fd4f21b4e50bc
opendj-admin/src/main/java/org/opends/server/admin/client/OperationRejectedException.java
@@ -34,8 +34,7 @@
import org.forgerock.i18n.LocalizableMessage;
import org.forgerock.i18n.LocalizableMessageBuilder;
import com.forgerock.opendj.util.Validator;
import org.forgerock.util.Reject;
/**
 * This exception is thrown when the client or server refuses to create, delete,
@@ -77,8 +76,8 @@
    // Gets the default message.
    private static LocalizableMessage getDefaultMessage(Collection<LocalizableMessage> messages) {
        Validator.ensureNotNull(messages);
        Validator.ensureTrue(!messages.isEmpty(), "Messages should not be empty");
        Reject.ifNull(messages);
        Reject.ifFalse(!messages.isEmpty(), "Messages should not be empty");
        if (messages.size() == 1) {
            return ERR_OPERATION_REJECTED_EXCEPTION_SINGLE.get(messages.iterator().next());