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

Jean-Noël Rouvignac
03.26.2016 30370aa1fc4d363f07023059f330e9a1ec9f2313
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/EntryHistorical.java
@@ -241,7 +241,7 @@
    // to the current modifications of the operation
    mods.add(new Modification(ModificationType.REPLACE, attr));
    // - update the already modified entry
    modifiedEntry.removeAttribute(attr.getAttributeType());
    modifiedEntry.removeAttribute(attr.getAttributeDescription().getAttributeType());
    modifiedEntry.addAttribute(attr, null);
  }
@@ -319,7 +319,7 @@
    AttrHistorical attrHist = attributesHistorical.get(attrDesc);
    if (attrHist == null)
    {
      attrHist = AttrHistorical.createAttributeHistorical(modAttr.getAttributeType());
      attrHist = AttrHistorical.createAttributeHistorical(modAttr.getAttributeDescription().getAttributeType());
      attributesHistorical.put(attrDesc, attrHist);
    }
    return attrHist;
@@ -714,7 +714,7 @@
   */
  public static boolean isHistoricalAttribute(Attribute attr)
  {
    AttributeType attrType = attr.getAttributeType();
    AttributeType attrType = attr.getAttributeDescription().getAttributeType();
    return HISTORICAL_ATTRIBUTE_NAME.equals(attrType.getNameOrOID());
  }