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

Jean-Noël Rouvignac
10.49.2016 bfe98e63238f46f62ddd44f57200a39ad974814e
LinkeAttribute: added javadocs to multipleValues field
1 files modified
12 ■■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/LinkedAttribute.java 12 ●●●●● patch | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/LinkedAttribute.java
@@ -25,7 +25,6 @@
import java.util.NoSuchElementException;
import org.forgerock.i18n.LocalizedIllegalArgumentException;
import org.forgerock.util.Reject;
/**
@@ -121,7 +120,7 @@
                public void remove() {
                    if (attribute.pimpl != expectedImpl) {
                        throw new ConcurrentModificationException();
                    } else {
                    }
                        iterator.remove();
                        // Resize if we have removed the second to last value.
@@ -131,12 +130,9 @@
                            iterator = attribute.pimpl.iterator(attribute);
                        }
                        // Always update since we may change to single or zero
                        // value
                        // impl.
                    // Always update since we may change to single or zero value impl.
                        expectedImpl = attribute.pimpl;
                    }
                }
            };
        }
@@ -249,9 +245,8 @@
        ByteString firstValue(final LinkedAttribute attribute) {
            if (attribute.singleValue != null) {
                return attribute.singleValue;
            } else {
                throw new NoSuchElementException();
            }
            throw new NoSuchElementException();
        }
        @Override
@@ -433,6 +428,7 @@
    private static final ZeroValueImpl ZERO_VALUE_IMPL = new ZeroValueImpl();
    private final AttributeDescription attributeDescription;
    /** Map of normalized values to raw values. */
    private Map<ByteString, ByteString> multipleValues;
    private ByteString normalizedSingleValue;
    private Impl pimpl = ZERO_VALUE_IMPL;