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

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git

commit 0b4b836aac83eb73202e7f84af5bcec24f02ed4a
Author: Andrus Adamchik <[email protected]>
AuthorDate: Sat May 23 18:27:06 2026 -0400

    Cleanup: Util.sortedIterator is deprecated in favor of plain Java 
alternatives
---
 cayenne/src/main/java/org/apache/cayenne/util/Util.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cayenne/src/main/java/org/apache/cayenne/util/Util.java 
b/cayenne/src/main/java/org/apache/cayenne/util/Util.java
index 7492a90f8..02d9bfd4e 100644
--- a/cayenne/src/main/java/org/apache/cayenne/util/Util.java
+++ b/cayenne/src/main/java/org/apache/cayenne/util/Util.java
@@ -569,7 +569,10 @@ public class Util {
      * Returns a sorted iterator from an unsorted one. Use this method as a 
last
      * resort, since it is much less efficient then just sorting a collection
      * that backs the original iterator.
+     *
+     * @deprecated unused
      */
+    @Deprecated(since = "5.0", forRemoval = true)
     public static <T> Iterator<T> sortedIterator(Iterator<T> it, Comparator<T> 
comparator) {
         List<T> list = new ArrayList<>();
         while (it.hasNext()) {

Reply via email to