LANG-1278: BooleanUtils javadoc issues

This commit is contained in:
pascalschumacher 2016-10-21 21:07:10 +02:00
parent 6423a76655
commit 91d6bd74fa
2 changed files with 7 additions and 9 deletions

View File

@ -46,6 +46,7 @@ The <action> type attribute can be add,update,fix,remove.
<body> <body>
<release version="3.6" date="tba" description="tba"> <release version="3.6" date="tba" description="tba">
<action issue="LANG-1278" type="fix" dev="pschumacher" due-to="Duke Yin">BooleanUtils javadoc issues</action>
<action issue="LANG-1277" type="update" dev="pschumacher" due-to="yufcuy">StringUtils#getLevenshteinDistance reduce memory consumption</action> <action issue="LANG-1277" type="update" dev="pschumacher" due-to="yufcuy">StringUtils#getLevenshteinDistance reduce memory consumption</action>
<action issue="LANG-1070" type="fix" dev="pschumacher" due-to="Paul Pogonyshev">ArrayUtils#add confusing example in javadoc</action> <action issue="LANG-1070" type="fix" dev="pschumacher" due-to="Paul Pogonyshev">ArrayUtils#add confusing example in javadoc</action>
<action issue="LANG-1271" type="fix" dev="pschumacher" due-to="Pierre Templier">StringUtils#isAnyEmpty and #isAnyBlank should return false for an empty array</action> <action issue="LANG-1271" type="fix" dev="pschumacher" due-to="Pierre Templier">StringUtils#isAnyEmpty and #isAnyBlank should return false for an empty array</action>

View File

@ -48,7 +48,7 @@ public BooleanUtils() {
* *
* <p>If {@code null} is passed in, {@code null} will be returned.</p> * <p>If {@code null} is passed in, {@code null} will be returned.</p>
* *
* <p>NOTE: This returns null and will throw a NullPointerException if autoboxed to a boolean. </p> * <p>NOTE: This returns null and will throw a NullPointerException if unboxed to a boolean. </p>
* *
* <pre> * <pre>
* BooleanUtils.negate(Boolean.TRUE) = Boolean.FALSE; * BooleanUtils.negate(Boolean.TRUE) = Boolean.FALSE;
@ -222,7 +222,7 @@ public static Boolean toBooleanObject(final int value) {
* *
* <p>{@code null} will be converted to {@code null}.</p> * <p>{@code null} will be converted to {@code null}.</p>
* *
* <p>NOTE: This returns null and will throw a NullPointerException if autoboxed to a boolean. </p> * <p>NOTE: This returns null and will throw a NullPointerException if unboxed to a boolean. </p>
* *
* <pre> * <pre>
* BooleanUtils.toBoolean(Integer.valueOf(0)) = Boolean.FALSE * BooleanUtils.toBoolean(Integer.valueOf(0)) = Boolean.FALSE
@ -305,7 +305,7 @@ public static boolean toBoolean(final Integer value, final Integer trueValue, fi
/** /**
* <p>Converts an int to a Boolean specifying the conversion values.</p> * <p>Converts an int to a Boolean specifying the conversion values.</p>
* *
* <p>NOTE: This returns null and will throw a NullPointerException if autoboxed to a boolean. </p> * <p>NOTE: This returns null and will throw a NullPointerException if unboxed to a boolean. </p>
* *
* <pre> * <pre>
* BooleanUtils.toBooleanObject(0, 0, 2, 3) = Boolean.TRUE * BooleanUtils.toBooleanObject(0, 0, 2, 3) = Boolean.TRUE
@ -337,7 +337,7 @@ public static Boolean toBooleanObject(final int value, final int trueValue, fina
/** /**
* <p>Converts an Integer to a Boolean specifying the conversion values.</p> * <p>Converts an Integer to a Boolean specifying the conversion values.</p>
* *
* <p>NOTE: This returns null and will throw a NullPointerException if autoboxed to a boolean. </p> * <p>NOTE: This returns null and will throw a NullPointerException if unboxed to a boolean. </p>
* *
* <pre> * <pre>
* BooleanUtils.toBooleanObject(Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(2), Integer.valueOf(3)) = Boolean.TRUE * BooleanUtils.toBooleanObject(Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(2), Integer.valueOf(3)) = Boolean.TRUE
@ -518,7 +518,7 @@ public static Integer toIntegerObject(final Boolean bool, final Integer trueValu
* (case insensitive) will return {@code false}. * (case insensitive) will return {@code false}.
* Otherwise, {@code null} is returned.</p> * Otherwise, {@code null} is returned.</p>
* *
* <p>NOTE: This returns null and will throw a NullPointerException if autoboxed to a boolean. </p> * <p>NOTE: This returns null and will throw a NullPointerException if unboxed to a boolean. </p>
* *
* <pre> * <pre>
* // N.B. case is not significant * // N.B. case is not significant
@ -636,7 +636,7 @@ public static Boolean toBooleanObject(final String str) {
/** /**
* <p>Converts a String to a Boolean throwing an exception if no match.</p> * <p>Converts a String to a Boolean throwing an exception if no match.</p>
* *
* <p>NOTE: This returns null and will throw a NullPointerException if autoboxed to a boolean. </p> * <p>NOTE: This returns null and will throw a NullPointerException if unboxed to a boolean. </p>
* *
* <pre> * <pre>
* BooleanUtils.toBooleanObject("true", "true", "false", "null") = Boolean.TRUE * BooleanUtils.toBooleanObject("true", "true", "false", "null") = Boolean.TRUE
@ -1026,9 +1026,6 @@ public static Boolean or(final Boolean... array) {
* BooleanUtils.xor(true, true) = false * BooleanUtils.xor(true, true) = false
* BooleanUtils.xor(false, false) = false * BooleanUtils.xor(false, false) = false
* BooleanUtils.xor(true, false) = true * BooleanUtils.xor(true, false) = true
* BooleanUtils.xor(true, true) = false
* BooleanUtils.xor(false, false) = false
* BooleanUtils.xor(true, false) = true
* </pre> * </pre>
* *
* @param array an array of {@code boolean}s * @param array an array of {@code boolean}s