You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Rahul Akolkar <ra...@gmail.com> on 2007/01/04 02:06:55 UTC

Re: [lang] svn commit: r492361 - in /jakarta/commons/proper/lang/trunk: RELEASE-NOTES.txt src/java/org/apache/commons/lang/BooleanUtils.java src/test/org/apache/commons/lang/BooleanUtilsTest.java

On 1/3/07, scolebourne@apache.org <sc...@apache.org> wrote:
> Author: scolebourne
> Date: Wed Jan  3 16:10:13 2007
> New Revision: 492361
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=492361
> Log:
> LANG-310 - BooleanUtils isNotTrue/isNotFalse
>
> Modified:
>     jakarta/commons/proper/lang/trunk/RELEASE-NOTES.txt
>     jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/BooleanUtils.java
>     jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/BooleanUtilsTest.java
>
<snip/>
> +    /**
> +     * <p>Checks if a <code>Boolean</code> value is <i>not</i> <code>false</code>,
> +     * handling <code>null</code> by returning <code>true</code>.</p>
> +     *
> +     * <pre>
> +     *   BooleanUtils.isNotTrue(Boolean.TRUE)  = true
> +     *   BooleanUtils.isNotTrue(Boolean.FALSE) = false
> +     *   BooleanUtils.isNotTrue(null)          = true
> +     * </pre>
> +     *
> +     * @param bool  the boolean to check, null returns <code>true</code>
> +     * @return <code>true</code> if the input is null or true
> +     * @since 2.3
> +     */
> +    public static boolean isNotFalse(Boolean bool) {
> +        return !isFalse(bool);
> +    }
> +
<snap/>

Javadoc for this method (<pre> section) has incorrect method name.

-Rahul

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [lang] svn commit: r492361 - in /jakarta/commons/proper/lang/trunk: RELEASE-NOTES.txt src/java/org/apache/commons/lang/BooleanUtils.java src/test/org/apache/commons/lang/BooleanUtilsTest.java

Posted by Stephen Colebourne <sc...@btopenworld.com>.
Rahul Akolkar wrote:
>> +     *   BooleanUtils.isNotTrue(Boolean.TRUE)  = true
>> +     *   BooleanUtils.isNotTrue(Boolean.FALSE) = false
>> +     *   BooleanUtils.isNotTrue(null)          = true
>> +     */
>> +    public static boolean isNotFalse(Boolean bool) {
>> +        return !isFalse(bool);
>> +    }
>> +
> <snap/>
> 
> Javadoc for this method (<pre> section) has incorrect method name.

Fixed, ta!

Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org