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

Jean-Noel Rouvignac
03.50.2014 befe101a86b529a905af1464ec393988c4a5e0ca
opendj-sdk/opendj-config/src/main/java/org/forgerock/opendj/config/IntegerPropertyDefinition.java
@@ -250,10 +250,8 @@
        Reject.ifNull(value);
        // Make sure that we correctly encode negative values as "unlimited".
        if (allowUnlimited) {
            if (value < 0) {
                return UNLIMITED;
            }
        if (allowUnlimited && value < 0) {
            return UNLIMITED;
        }
        return value.toString();
@@ -264,10 +262,8 @@
    public Integer decodeValue(String value) {
        Reject.ifNull(value);
        if (allowUnlimited) {
            if (value.trim().equalsIgnoreCase(UNLIMITED)) {
                return -1;
            }
        if (allowUnlimited && UNLIMITED.equalsIgnoreCase(value.trim())) {
            return -1;
        }
        Integer i;