You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2018/08/20 17:02:43 UTC

[3/3] [lang] LANG-1411: Add changes.xml entry and @since tags.

LANG-1411: Add changes.xml entry and @since tags.

This fixes #342 from GitHub. Thanks to Alexander Tsvetkov.


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/d1e72ebe
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/d1e72ebe
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/d1e72ebe

Branch: refs/heads/master
Commit: d1e72ebede93d73d1a3caf74e391fd83516e0685
Parents: 44e3220
Author: Benedikt Ritter <br...@apache.org>
Authored: Mon Aug 20 19:01:46 2018 +0200
Committer: Benedikt Ritter <br...@apache.org>
Committed: Mon Aug 20 19:01:46 2018 +0200

----------------------------------------------------------------------
 src/changes/changes.xml                                 | 3 ++-
 src/main/java/org/apache/commons/lang3/ObjectUtils.java | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/d1e72ebe/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 4a11676..5e87a0b 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -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.">

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/d1e72ebe/src/main/java/org/apache/commons/lang3/ObjectUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/ObjectUtils.java b/src/main/java/org/apache/commons/lang3/ObjectUtils.java
index 6934f23..4a84c4f 100644
--- a/src/main/java/org/apache/commons/lang3/ObjectUtils.java
+++ b/src/main/java/org/apache/commons/lang3/ObjectUtils.java
@@ -103,6 +103,7 @@ public class 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 class ObjectUtils {
      * @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);