commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar" <rahul.akol...@gmail.com>
Subject 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
Date Thu, 04 Jan 2007 01:06:55 GMT
On 1/3/07, scolebourne@apache.org <scolebourne@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


Mime
View raw message