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

Matthew Swift
12.40.2012 af42c52babd3164b5c091b71213153bd90e7841d
Remove some minor Javadoc warnings.
3 files modified
71 ■■■■ changed files
opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldif/LDIFEntryWriterTestCase.java 59 ●●●● patch | view | raw | blame | history
opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/ArgumentGroup.java 3 ●●●● patch | view | raw | blame | history
opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/MultiColumnPrinter.java 9 ●●●●● patch | view | raw | blame | history
opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldif/LDIFEntryWriterTestCase.java
@@ -75,7 +75,7 @@
     * Test setExcludeAttribute method of LDIFEntryWriter Throws a
     * NullPointerException if the attributeDescription is null.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test(expectedExceptions = NullPointerException.class)
    public void testSetExcludeAttributeDoesntAllowNull() throws Exception {
@@ -90,7 +90,7 @@
    /**
     * Test to write an entry with attribute exclusions.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetExcludeAttributeWithMatch() throws Exception {
@@ -114,7 +114,7 @@
     * Test to write an entry with attribute exclusions. In this test, the
     * attribute description 'vip' doesn't exist then the entry must be written
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetExcludeAttributeWithNoMatch() throws Exception {
@@ -139,7 +139,7 @@
     * Test SetExcludeBranch method of LDIFEntryWriter Throws a
     * NullPointerException if the excludeBranch is null.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test(expectedExceptions = NullPointerException.class)
    public void testSetExcludeBranchDoesntAllowNull() throws Exception {
@@ -154,7 +154,7 @@
    /**
     * Test SetExcludeBranch method of LDIFEntryWriter.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetExcludeBranchWrongDN() throws Exception {
@@ -176,7 +176,7 @@
    /**
     * Test SetExcludeBranch method of LDIFEntryWriter.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetExcludeBranchWithNoMatch() throws Exception {
@@ -197,7 +197,7 @@
    /**
     * Test SetExcludeBranch method of LDIFEntryWriter.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetExcludeBranchWithMatch() throws Exception {
@@ -219,7 +219,7 @@
     * Test SetExcludeFilter method of LDIFEntryWriter Throws a
     * NullPointerException if the excludeFilter is null.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test(expectedExceptions = NullPointerException.class)
    public void testsetExcludeFilterDoesntAllowNull() throws Exception {
@@ -235,7 +235,7 @@
     * Test testSetExcludeFilter method of LDIFEntryWriter. StandardEntry has an
     * objectclass : person
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetExcludeFilterWithMatch() throws Exception {
@@ -258,7 +258,7 @@
     * Test testSetExcludeFilter method of LDIFEntryWriter StandardEntry has an
     * objectclass : person
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetExcludeFilterWithNoMatch() throws Exception {
@@ -280,7 +280,7 @@
     * Test SetIncludeAttribute method of LDIFEntryWriter Throws a
     * NullPointerException if the attributeDescription is null.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test(expectedExceptions = NullPointerException.class)
    public void testSetIncludeAttributeDoesntAllowNull() throws Exception {
@@ -294,7 +294,7 @@
     * Test SetIncludeAttribute method of LDIFEntryWriter. Inserting attribute
     * cn (common name) & sn (surname)
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetIncludeAttributeWithMatch() throws Exception {
@@ -315,7 +315,7 @@
     * field "manager" is not present in the StandardEntry. Then the entry must
     * only write the first line : dn: cn=John Doe,ou=people,dc=example,dc=com
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetIncludeAttributeWithNoMatch() throws Exception {
@@ -337,7 +337,7 @@
     * Test SetIncludeAttribute method of LDIFEntryWriter. Attempted insertions
     * repeating attributes. An attribute mustn't be written twice or +.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetIncludeAttributeWithRepeatedAttributes() throws Exception {
@@ -362,7 +362,7 @@
     * Test to write an entry excluding all operational attributes
     * setExcludeAllOperationalAttributes to false (default case)
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetExcludeAllOperationalAttributesFalse() throws Exception {
@@ -392,7 +392,7 @@
     * setExcludeAllOperationalAttributes is forced to true Result should be dn:
     * cn=John Doe,ou=people,dc=example,dc=com plus an empty line.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetExcludeAllOperationalAttributesTrue() throws Exception {
@@ -417,7 +417,7 @@
     * Test to write an entry excluding user attributes Default case - full
     * entry must be written
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetExcludeAllUserAttributesFalse() throws Exception {
@@ -438,7 +438,7 @@
     * Test to write an entry excluding user attributes result should be dn:
     * cn=John Doe,ou=people,dc=example,dc=com plus an empty line.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetExcludeAllUserAttributesTrue() throws Exception {
@@ -463,7 +463,7 @@
     * Test SetIncludeBranch method of LDIFEntryWriter Throws a
     * NullPointerException if the includeBranch is null.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test(expectedExceptions = NullPointerException.class)
    public void testSetIncludeBranchDoesntAllowNull() throws Exception {
@@ -477,7 +477,7 @@
     * Test SetIncludeBranch method of LDIFEntryWriter verifying right data are
     * present.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetIncludeBranchWithMatch() throws Exception {
@@ -500,7 +500,7 @@
     * "dc=opendj,dc=org", which is not the one from the standard entry Entry
     * must not be written
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetIncludeBranchWithNoMatch() throws Exception {
@@ -522,7 +522,7 @@
     * Filter.equality("objectclass", "vip"); which is not the one from the
     * standard entry.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetIncludeFilterWithNoMatch() throws Exception {
@@ -544,7 +544,7 @@
     * Filter.equality("objectclass", "person"); which is the one from the
     * standard entry.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetIncludeFilterWithMatch() throws Exception {
@@ -567,7 +567,7 @@
     * Test SetIncludeFilter method of LDIFEntryWriter Throws a
     * NullPointerException if the schema is null.
     *
     * @throws NullPointerException
     * @throws Exception If the test failed unexpectedly.
     */
    @Test(expectedExceptions = NullPointerException.class)
    public void testSetIncludeFilterDoesntAllowNull() throws Exception {
@@ -687,10 +687,10 @@
    /**
     * Test to write an entry adding the user friendly Comment TODO
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testSetAddUserFriendlyComments() throws IOException {
    public void testSetAddUserFriendlyComments() throws Exception {
        final List<String> actual = new ArrayList<String>();
        final LDIFEntryWriter writer = new LDIFEntryWriter(actual);
@@ -775,8 +775,7 @@
     * Testing the WriteEntry function using the mock for testing more
     * IOExceptions and verify if they are correctly handled.
     *
     * @throws FileNotFoundException
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test(expectedExceptions = IOException.class)
    public void testWriteEntryUsingMockOutputThrowsIOException() throws Exception {
@@ -797,7 +796,7 @@
    /**
     * Verify flush/close are also forwarded to the stream.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testWriteEntryUsingMockOutputForFlushAndClose() throws Exception {
@@ -817,7 +816,7 @@
     * Test the WriteEntry using an output file verifying write is correctly
     * invoked.
     *
     * @throws Exception
     * @throws Exception If the test failed unexpectedly.
     */
    @Test
    public void testWriteEntryOutputStreamUsingMock() throws Exception {
opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/ArgumentGroup.java
@@ -22,6 +22,7 @@
 *
 *
 *      Copyright 2008 Sun Microsystems, Inc.
 *      Portions copyright 2012 ForgeRock AS.
 */
package com.forgerock.opendj.ldap.tools;
@@ -36,7 +37,7 @@
/**
 * Class for organizing options into logical groups when arguement usage is
 * printed. To use an argument group, create an instance and use
 * {@link org.opendj.server.util.args.ArgumentParser #addArgument(Argument, ArgumentGroup)}
 * {@link ArgumentParser#addArgument(Argument, ArgumentGroup)}
 * when adding arguments for to the parser.
 */
final class ArgumentGroup implements Comparable<ArgumentGroup> {
opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/MultiColumnPrinter.java
@@ -22,6 +22,7 @@
 *
 *
 *      Copyright 2010 Sun Microsystems, Inc.
 *      Portions copyright 2012 ForgeRock AS.
 */
package com.forgerock.opendj.ldap.tools;
@@ -121,11 +122,11 @@
 */
final class MultiColumnPrinter {
    final public static int LEFT = 0;
    final static int LEFT = 0;
    final public static int CENTER = 1;
    final static int CENTER = 1;
    final public static int RIGHT = 2;
    final static int RIGHT = 2;
    private int numCol = 2;
@@ -435,6 +436,8 @@
     * Set alignment for title strings.
     *
     * @param titleAlign
     *            The alignment which should be one of {@code LEFT},
     *            {@code RIGHT}, or {@code CENTER}.
     */
    void setTitleAlign(final int titleAlign) {
        this.titleAlign = titleAlign;