You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/01/26 15:22:30 UTC

(commons-collections) branch master updated: Deprecate IterableUtils 0-argument constructor

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git


The following commit(s) were added to refs/heads/master by this push:
     new 497153c74 Deprecate IterableUtils 0-argument constructor
     new 09dd28409 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-collections.git
497153c74 is described below

commit 497153c7439573dfbdf20e940c7aa98790a066ca
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jan 26 10:18:49 2024 -0500

    Deprecate IterableUtils 0-argument constructor
---
 src/changes/changes.xml                                          | 3 +++
 src/main/java/org/apache/commons/collections4/IterableUtils.java | 9 +++++++++
 2 files changed, 12 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 37db9e124..e912a2903 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -203,6 +203,9 @@
     <action dev="ggregory" type="fix" due-to="Martin Wiesner, Bruno P. Kinoshita, Gary Gregory">
       Fix punctuation and minor Javadoc issues #409.
     </action>
+    <action dev="ggregory" type="fix" due-to="Gary Gregory">
+      Deprecate IterableUtils 0-argument constructor.
+    </action>
     <!-- ADD -->
     <action issue="COLLECTIONS-843" dev="ggregory" type="add" due-to="Claude Warren, Alex Herbert, Gary Gregory">
       Implement Layered Bloom filter #402.
diff --git a/src/main/java/org/apache/commons/collections4/IterableUtils.java b/src/main/java/org/apache/commons/collections4/IterableUtils.java
index ba0042f0b..ded2178d0 100644
--- a/src/main/java/org/apache/commons/collections4/IterableUtils.java
+++ b/src/main/java/org/apache/commons/collections4/IterableUtils.java
@@ -1040,4 +1040,13 @@ public class IterableUtils {
         };
     }
 
+    /**
+     * Make private in 5.0.
+     *
+     * @deprecated TODO Make private in 5.0.
+     */
+    @Deprecated
+    public IterableUtils() {
+        // empty
+    }
 }