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

Jean-Noel Rouvignac
03.50.2014 8433427527214c83f56c533259efd7f56a1863b3
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;