mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-09 03:24:58 +00:00
LANG-1411: Add changes.xml entry and @since tags.
This fixes #342 from GitHub. Thanks to Alexander Tsvetkov.
This commit is contained in:
parent
44e32205a6
commit
d1e72ebede
@ -45,7 +45,8 @@ The <action> type attribute can be add,update,fix,remove.
|
||||
</properties>
|
||||
<body>
|
||||
|
||||
<release version="3.8" date="????-??-??" description="??">
|
||||
<release version="3.9" date="????-??-??" description="??">
|
||||
<action issue="LANG-1411" type="add" dev="britter" due-to="Alexander Tsvetkov">Add isEmpty method to ObjectUtils</action>
|
||||
</release>
|
||||
|
||||
<release version="3.8" date="2018-08-15" description="New features and bug fixes. Requires Java 7, supports Java 8, 9, 10.">
|
||||
|
@ -103,6 +103,7 @@ public ObjectUtils() {
|
||||
* @param object the {@code Object} to test, may be {@code null}
|
||||
* @return {@code true} if the object has a supported type and is empty or null,
|
||||
* {@code false} otherwise
|
||||
* @since 3.9
|
||||
*/
|
||||
public static boolean isEmpty(final Object object) {
|
||||
if (object == null) {
|
||||
@ -146,6 +147,7 @@ public static boolean isEmpty(final Object object) {
|
||||
* @param object the {@code Object} to test, may be {@code null}
|
||||
* @return {@code true} if the object has an unsupported type or is not empty
|
||||
* and not null, {@code false} otherwise
|
||||
* @since 3.9
|
||||
*/
|
||||
public static boolean isNotEmpty(final Object object) {
|
||||
return !isEmpty(object);
|
||||
|
Loading…
x
Reference in New Issue
Block a user