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

Jean-Noel Rouvignac
18.26.2015 ca669ae54f86dbeea277280690584d9f591c7571
opendj-server-legacy/src/main/java/org/opends/server/admin/IntegerPropertyDefinition.java
@@ -301,10 +301,8 @@
    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();
@@ -314,14 +312,11 @@
   * {@inheritDoc}
   */
  @Override
  public Integer decodeValue(String value)
      throws PropertyException {
  public Integer decodeValue(String value) throws PropertyException {
    ifNull(value);
    if (allowUnlimited) {
      if (value.trim().equalsIgnoreCase(UNLIMITED)) {
        return -1;
      }
    if (allowUnlimited && value.trim().equalsIgnoreCase(UNLIMITED)) {
      return -1;
    }
    Integer i;