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

Yannick Lecaillez
26.52.2016 1d44ddb556cbac5b1eb39fd39360564bfade63d0
Specify the size of the attribute's HashMap to prevent the map to be
resized when the attribute are populated.
1 files modified
4 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ImportLDIFReader.java 4 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ImportLDIFReader.java
@@ -205,8 +205,8 @@
  {
    // Read the set of attributes from the entry.
    Map<ObjectClass, String> objectClasses = new HashMap<>();
    Map<AttributeType, List<AttributeBuilder>> userAttrBuilders = new HashMap<>();
    Map<AttributeType, List<AttributeBuilder>> operationalAttrBuilders = new HashMap<>();
    Map<AttributeType, List<AttributeBuilder>> userAttrBuilders = new HashMap<>(lines.size());
    Map<AttributeType, List<AttributeBuilder>> operationalAttrBuilders = new HashMap<>(lines.size());
    try
    {
      for (StringBuilder line : lines)