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

Matthew Swift
19.51.2013 813c78e0dd2862ff7eb2c80963d80ab81e1c1bf9
opendj-sdk/opendj-admin/src/main/java/org/opends/server/admin/IntegerPropertyDefinition.java
@@ -26,7 +26,7 @@
package org.opends.server.admin;
import static com.forgerock.opendj.util.Validator.*;
import org.forgerock.util.Reject;
import java.util.EnumSet;
import java.util.Locale;
@@ -230,7 +230,7 @@
     */
    @Override
    public void validateValue(Integer value) throws IllegalPropertyValueException {
        ensureNotNull(value);
        Reject.ifNull(value);
        if (!allowUnlimited && value < lowerLimit) {
            throw new IllegalPropertyValueException(this, value);
@@ -250,7 +250,7 @@
     */
    @Override
    public String encodeValue(Integer value) throws IllegalPropertyValueException {
        ensureNotNull(value);
        Reject.ifNull(value);
        // Make sure that we correctly encode negative values as "unlimited".
        if (allowUnlimited) {
@@ -267,7 +267,7 @@
     */
    @Override
    public Integer decodeValue(String value) throws IllegalPropertyValueStringException {
        ensureNotNull(value);
        Reject.ifNull(value);
        if (allowUnlimited) {
            if (value.trim().equalsIgnoreCase(UNLIMITED)) {