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

Gaetan Boismal
16.58.2015 a7e3f592cadebaabdd8dd3454c84672f2c66b81e
OPENDJ-1722: code cleanup
1 files modified
33 ■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/SchemaBuilder.java 33 ●●●● patch | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/SchemaBuilder.java
@@ -369,8 +369,7 @@
                    // or an open parenthesis followed by one or more values in
                    // single quotes separated by spaces followed by a close
                    // parenthesis.
                    List<String> extensions = readExtensions(reader);
                    atBuilder.extraProperties(tokenName, extensions);
                    atBuilder.extraProperties(tokenName, readExtensions(reader));
                } else {
                    throw new LocalizedIllegalArgumentException(
                        ERR_ATTR_SYNTAX_ATTRTYPE_ILLEGAL_TOKEN1.get(definition, tokenName));
@@ -1027,21 +1026,6 @@
    }
    /**
     * Returns an attribute type builder whose fields are initialized to the
     * values of the provided attribute type. This method should be used when
     * duplicating attribute types from external schemas or when modifying
     * existing attribute types.
     *
     * @param attributeType
     *            The attribute type source.
     * @return A builder to continue building the AttributeType.
     */
    public AttributeType.Builder buildAttributeType(final AttributeType attributeType) {
        lazyInitBuilder();
        return new AttributeType.Builder(attributeType, this);
    }
    /**
     * Returns a builder which can be used for incrementally constructing a new
     * attribute type before adding it to the schema. Example usage:
     *
@@ -1281,6 +1265,21 @@
    }
    /**
     * Returns an attribute type builder whose fields are initialized to the
     * values of the provided attribute type. This method should be used when
     * duplicating attribute types from external schemas or when modifying
     * existing attribute types.
     *
     * @param attributeType
     *            The attribute type source.
     * @return A builder to continue building the AttributeType.
     */
    public AttributeType.Builder buildAttributeType(final AttributeType attributeType) {
        lazyInitBuilder();
        return new AttributeType.Builder(attributeType, this);
    }
    /**
     * Duplicates the matching rule.
     *
     * @param matchingRule