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

Matthew Swift
21.58.2014 6ed218f99aeedae761a1fef9d63bcb491a6ca353
Minor code cleanup.
4 files modified
12 ■■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/LDAPUrl.java 4 ●●●● patch | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/TrustManagers.java 2 ●●● patch | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldif/LDIF.java 4 ●●●● patch | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldif/TemplateTag.java 2 ●●●●● patch | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/LDAPUrl.java
@@ -22,7 +22,7 @@
 *
 *
 *      Copyright 2010 Sun Microsystems, Inc.
 *      Portions copyright 2012 ForgeRock AS.
 *      Portions copyright 2012-2014 ForgeRock AS.
 */
package org.forgerock.opendj.ldap;
@@ -736,8 +736,8 @@
    private int parseHostPort(final String urlString, final String hostAndPort,
            final StringBuilder host) {
        Reject.ifNull(urlString);
        Reject.ifNull(hostAndPort);
        Reject.ifNull((Object) port);
        Reject.ifNull(host);
        int urlPort = isSecured ? DEFAULT_SSL_PORT : DEFAULT_PORT;
        if (hostAndPort.length() == 0) {
opendj-core/src/main/java/org/forgerock/opendj/ldap/TrustManagers.java
@@ -119,7 +119,7 @@
            return hostMatch;
        }
        private void verifyHostName(final X509Certificate[] chain) throws CertificateException {
        private void verifyHostName(final X509Certificate[] chain) {
            try {
                // TODO: NPE if root DN.
                final DN dn =
opendj-core/src/main/java/org/forgerock/opendj/ldif/LDIF.java
@@ -20,7 +20,7 @@
 *
 * CDDL HEADER END
 *
 *      Copyright 2011-2013 ForgeRock AS
 *      Copyright 2011-2014 ForgeRock AS
 */
package org.forgerock.opendj.ldif;
@@ -231,7 +231,7 @@
                }
            }
            private Entry nextEntry(final Iterator<byte[][]> i) throws IOException {
            private Entry nextEntry(final Iterator<byte[][]> i) {
                if (i.hasNext()) {
                    return decodeEntry(i.next()[1]);
                }
opendj-core/src/main/java/org/forgerock/opendj/ldif/TemplateTag.java
@@ -83,6 +83,8 @@
     * @param warnings
     *            A list into which any appropriate warning messages may be
     *            placed.
     * @throws DecodeException
     *             If tag cannot be initialized.
     */
    void initializeForBranch(Schema schema, TemplateFile templateFile, Branch branch, String[] arguments,
            int lineNumber, List<LocalizableMessage> warnings) throws DecodeException {