LANG-1259: JavaDoc for ArrayUtils.isNotEmpty() is slightly misleading. Thanks to Dominik Stadler.

This commit is contained in:
Benedikt Ritter 2016-08-19 09:49:51 +02:00
parent eaa9269ac8
commit 4a26a86d0c
2 changed files with 19 additions and 18 deletions

View File

@ -46,6 +46,7 @@ The <action> type attribute can be add,update,fix,remove.
<body>
<release version="3.5" date="tba" description="tba">
<action issue="LANG-1259" type="update" dev="britter" due-to="Dominik Stadler">JavaDoc for ArrayUtils.isNotEmpty() is slightly misleading</action>
<action issue="LANG-1257" type="add" dev="ggregory" due-to="Gary Gregory">Add APIs StringUtils.wrapIfMissing(String, char|String)</action>
<action issue="LANG-1190" type="fix" dev="pschumacher" due-to="pschumacher">TypeUtils.isAssignable throws NullPointerException when fromType has type variables and toType generic superclass specifies type variable</action>
<action issue="LANG-1226" type="fix" dev="pschumacher" due-to="pschumacher">StringUtils#normalizeSpace does not trim the string anymore</action>

View File

@ -4894,11 +4894,11 @@ public static boolean isEmpty(final boolean[] array) {
// ----------------------------------------------------------------------
/**
* <p>Checks if an array of Objects is not empty or not {@code null}.
* <p>Checks if an array of Objects is not empty and not {@code null}.
*
* @param <T> the component type of the array
* @param array the array to test
* @return {@code true} if the array is not empty or not {@code null}
* @return {@code true} if the array is not empty and not {@code null}
* @since 2.5
*/
public static <T> boolean isNotEmpty(final T[] array) {
@ -4906,10 +4906,10 @@ public static <T> boolean isNotEmpty(final T[] array) {
}
/**
* <p>Checks if an array of primitive longs is not empty or not {@code null}.
* <p>Checks if an array of primitive longs is not empty and not {@code null}.
*
* @param array the array to test
* @return {@code true} if the array is not empty or not {@code null}
* @return {@code true} if the array is not empty and not {@code null}
* @since 2.5
*/
public static boolean isNotEmpty(final long[] array) {
@ -4917,10 +4917,10 @@ public static boolean isNotEmpty(final long[] array) {
}
/**
* <p>Checks if an array of primitive ints is not empty or not {@code null}.
* <p>Checks if an array of primitive ints is not empty and not {@code null}.
*
* @param array the array to test
* @return {@code true} if the array is not empty or not {@code null}
* @return {@code true} if the array is not empty and not {@code null}
* @since 2.5
*/
public static boolean isNotEmpty(final int[] array) {
@ -4928,10 +4928,10 @@ public static boolean isNotEmpty(final int[] array) {
}
/**
* <p>Checks if an array of primitive shorts is not empty or not {@code null}.
* <p>Checks if an array of primitive shorts is not empty and not {@code null}.
*
* @param array the array to test
* @return {@code true} if the array is not empty or not {@code null}
* @return {@code true} if the array is not empty and not {@code null}
* @since 2.5
*/
public static boolean isNotEmpty(final short[] array) {
@ -4939,10 +4939,10 @@ public static boolean isNotEmpty(final short[] array) {
}
/**
* <p>Checks if an array of primitive chars is not empty or not {@code null}.
* <p>Checks if an array of primitive chars is not empty and not {@code null}.
*
* @param array the array to test
* @return {@code true} if the array is not empty or not {@code null}
* @return {@code true} if the array is not empty and not {@code null}
* @since 2.5
*/
public static boolean isNotEmpty(final char[] array) {
@ -4950,10 +4950,10 @@ public static boolean isNotEmpty(final char[] array) {
}
/**
* <p>Checks if an array of primitive bytes is not empty or not {@code null}.
* <p>Checks if an array of primitive bytes is not empty and not {@code null}.
*
* @param array the array to test
* @return {@code true} if the array is not empty or not {@code null}
* @return {@code true} if the array is not empty and not {@code null}
* @since 2.5
*/
public static boolean isNotEmpty(final byte[] array) {
@ -4961,10 +4961,10 @@ public static boolean isNotEmpty(final byte[] array) {
}
/**
* <p>Checks if an array of primitive doubles is not empty or not {@code null}.
* <p>Checks if an array of primitive doubles is not empty and not {@code null}.
*
* @param array the array to test
* @return {@code true} if the array is not empty or not {@code null}
* @return {@code true} if the array is not empty and not {@code null}
* @since 2.5
*/
public static boolean isNotEmpty(final double[] array) {
@ -4972,10 +4972,10 @@ public static boolean isNotEmpty(final double[] array) {
}
/**
* <p>Checks if an array of primitive floats is not empty or not {@code null}.
* <p>Checks if an array of primitive floats is not empty and not {@code null}.
*
* @param array the array to test
* @return {@code true} if the array is not empty or not {@code null}
* @return {@code true} if the array is not empty and not {@code null}
* @since 2.5
*/
public static boolean isNotEmpty(final float[] array) {
@ -4983,10 +4983,10 @@ public static boolean isNotEmpty(final float[] array) {
}
/**
* <p>Checks if an array of primitive booleans is not empty or not {@code null}.
* <p>Checks if an array of primitive booleans is not empty and not {@code null}.
*
* @param array the array to test
* @return {@code true} if the array is not empty or not {@code null}
* @return {@code true} if the array is not empty and not {@code null}
* @since 2.5
*/
public static boolean isNotEmpty(final boolean[] array) {