////////////////////////////////////////////////////////////////////////////////
// checkstyle: Checks Java source code for adherence to a set of rules.
// Copyright (C) 2001-2002  Oliver Burn
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle.checks;

import java.util.HashMap;
import java.util.Map;

/**
 * Represents the options for blocks.
 *
 * @author Rick Giles
 */
public final class BlockOption
    extends AbstractOption
{
    /** maps from a string representation to an option */
    private static final Map STR_TO_OPT = new HashMap();
    
    /** require that there is some text in the block **/
    public static final BlockOption TEXT = new BlockOption("text");
    /** require that there is a statement in the block **/
    public static final BlockOption STMT = new BlockOption("statement");
    
    /**
     * Creates a new <code>BlockOption</code> instance.
     *
     * @param aStrRep the string representation
     */
    private BlockOption(String aStrRep)
    {
        super(aStrRep);
    }
    
    /** @see com.puppycrawl.tools.checkstyle.checks.AbstractOption */
    protected Map getStrToOpt()
    {
        return STR_TO_OPT;
    }
}

////////////////////////////////////////////////////////////////////////////////
// checkstyle: Checks Java source code for adherence to a set of rules.
// Copyright (C) 2001-2002  Oliver Burn
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle.checks;

import java.util.HashMap;
import java.util.Map;

/**
 * Represents the policy for checking block statements.
 * @author Rick Giles
 */
public final class BlockOption
    extends AbstractOption
{
    /** maps from a string representation to an option */
    private static final Map STR_TO_OPT = new HashMap();

    /**
     * Represents the policy that there is some text in the block. For example:
     *
     * <pre>
     * catch (Exception ex) {
     *     // This is a bad coding practice
     * }
     * </pre>
     */
    public static final BlockOption TEXT = new BlockOption("text");

    /**
     * Represents the policy that there is a statement in the block. For
     * example:
     *
     * <pre>
     * finally {
     *     lock.release();
     * }
     * </pre>
     */
    public static final BlockOption STMT = new BlockOption("statement");

    /**
     * Creates a new <code>BlockOption</code> instance.
     *
     * @param aStrRep the string representation
     */
    private BlockOption(String aStrRep)
    {
        super(aStrRep);
    }

    /** @see com.puppycrawl.tools.checkstyle.checks.AbstractOption */
    protected Map getStrToOpt()
    {
        return STR_TO_OPT;
    }
}

Fix the Javadoc