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

Valery Kharseko
15.32.2024 3b4ff5ecbd27449d944efcbc0bfae3c98c28356b
opendj-server-legacy/src/main/java/org/opends/server/api/CompressedSchema.java
@@ -162,10 +162,8 @@
   */
  private void reloadAttributeTypeMaps(Mappings mappings, Mappings newMappings)
  {
    for (Entry<AttributeDescription, Integer> entry : mappings.adEncodeMap.entrySet())
    {
      AttributeDescription ad = entry.getKey();
      Integer id = entry.getValue();
    for(int id=0;id<mappings.adDecodeMap.size();id++){
      final AttributeDescription ad = mappings.adDecodeMap.get(id);
      loadAttributeToMaps(id, ad.getAttributeType().getNameOrOID(), ad.getOptions(), newMappings);
    }
  }
@@ -176,11 +174,8 @@
   */
  private void reloadObjectClassesMap(Mappings mappings, Mappings newMappings)
  {
    for (Entry<Map<ObjectClass, String>, Integer> entry : mappings.ocEncodeMap.entrySet())
    {
      Map<ObjectClass, String> ocMap = entry.getKey();
      Integer id = entry.getValue();
      loadObjectClassesToMaps(id, ocMap.values(), newMappings, false);
    for(int id=0;id<mappings.ocDecodeMap.size();id++){
      loadObjectClassesToMaps(id, mappings.ocDecodeMap.get(id).values(), newMappings, false);
    }
  }