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

Jean-Noel Rouvignac
24.59.2015 0b6ab457f704afb95fc3d8389d50bf951eb9353e
HistAttrModificationKey.java:
Renamed DELATTR to ATTRDEL to match string representation.
4 files modified
13 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrHistoricalMultiple.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrHistoricalSingle.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/HistAttrModificationKey.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/HistoricalAttributeValue.java 7 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrHistoricalMultiple.java
@@ -611,7 +611,7 @@
      }
      break;
    case DELATTR:
    case ATTRDEL:
      delete(csn);
      break;
    }
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrHistoricalSingle.java
@@ -297,7 +297,7 @@
      }
      break;
    case DELATTR:
    case ATTRDEL:
      this.deleteTime = csn;
      break;
    }
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/HistAttrModificationKey.java
@@ -41,7 +41,7 @@
  /** The key for attribute value deletion. */
  DEL("del"),
  /** The key for attribute deletion. */
  DELATTR("attrDel"),
  ATTRDEL("attrDel"),
  /** The key for attribute replace. */
  REPL("repl"),
  /** The key for attribute value addition. */
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/HistoricalAttributeValue.java
@@ -133,7 +133,7 @@
    csn = new CSN(token[1]);
    histKey = HistAttrModificationKey.decodeKey(token[2]);
    if (histKey != DELATTR)
    if (histKey != ATTRDEL)
    {
      if (token.length == 4)
      {
@@ -222,7 +222,7 @@
    AttributeBuilder builder = new AttributeBuilder(attrType, attrString);
    builder.setOptions(options);
    if (histKey != DELATTR)
    if (histKey != ATTRDEL)
    {
      builder.add(attributeValue);
    }
@@ -233,11 +233,10 @@
    case ADD:
      return new Modification(ModificationType.ADD, attr);
    case DEL:
    case ATTRDEL:
      return new Modification(ModificationType.DELETE, attr);
    case REPL:
      return new Modification(ModificationType.REPLACE, attr);
    case DELATTR:
      return new Modification(ModificationType.DELETE, attr);
    default:
      return null;
    }