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

Matthew Swift
25.26.2012 1f9c088323457aa2cd3a74c8e7a4cce12409c13c
Minor code formatting cleanup.
2 files modified
16 ■■■■■ changed files
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/GetInfo.java 13 ●●●●● patch | view | raw | blame | history
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Proxy.java 3 ●●●● patch | view | raw | blame | history
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/GetInfo.java
@@ -77,12 +77,8 @@
                attributeList = "+"; // All operational attributes
            }
            final SearchResultEntry entry = connection.searchSingleEntry("", // DN
                                                                             // is
                                                                             // ""
                                                                             // for
                                                                             // root
                                                                             // DSE.
            final SearchResultEntry entry = connection.searchSingleEntry(
                    "", // DN is "" for root DSE.
                    SearchScope.BASE_OBJECT, // Read only the root DSE.
                    "objectclass=*", // Every object matches this filter.
                    attributeList); // Return these requested attributes.
@@ -127,8 +123,9 @@
        host = args[0];
        port = Integer.parseInt(args[1]);
        infoType = args[2]; // all, controls, or extops
        if (!(infoType.toLowerCase().equals("all") || infoType.toLowerCase().equals("controls") || infoType
                .toLowerCase().equals("extops"))) {
        if (!(infoType.toLowerCase().equals("all")
                || infoType.toLowerCase().equals("controls")
                || infoType.toLowerCase().equals("extops"))) {
            giveUp();
        }
    }
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Proxy.java
@@ -95,7 +95,8 @@
            this.bindFactory = bindFactory;
        }
        private abstract class AbstractRequestCompletionHandler<R extends Result, H extends ResultHandler<? super R>>
        private abstract class AbstractRequestCompletionHandler
                <R extends Result, H extends ResultHandler<? super R>>
                implements ResultHandler<R> {
            final H resultHandler;
            final Connection connection;