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 1151960  Add singleton ObjectToStringComparator.INSTANCE.
     new 4984c96  Merge branch 'master' of 
https://gitbox.apache.org/repos/asf/commons-collections.git
1151960 is described below

commit 1151960efae79dc5f9c7a8758a7ee1fbee08588c
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Feb 13 11:18:30 2022 -0500

    Add singleton ObjectToStringComparator.INSTANCE.
---
 src/changes/changes.xml                                            | 3 +++
 .../commons/collections4/junit/ObjectToStringComparator.java       | 7 +++++++
 2 files changed, 10 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index deead32..ae4361e 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -119,6 +119,9 @@
     <action dev="ggregory" type="add" due-to="Gary Gregory">
       Add ListUtils.getFirst() and getLast().
     </action>
+    <action dev="ggregory" type="add" due-to="Gary Gregory">
+      Add singleton ObjectToStringComparator.INSTANCE.
+    </action>
     <!-- UPDATE -->
     <action type="update" dev="kinow" due-to="Dependabot">
       Bump actions/setup-java from v1.4.0 to v2 #174 #177 #186 #224.
diff --git 
a/src/test/java/org/apache/commons/collections4/junit/ObjectToStringComparator.java
 
b/src/test/java/org/apache/commons/collections4/junit/ObjectToStringComparator.java
index c207468..eee8ed8 100644
--- 
a/src/test/java/org/apache/commons/collections4/junit/ObjectToStringComparator.java
+++ 
b/src/test/java/org/apache/commons/collections4/junit/ObjectToStringComparator.java
@@ -22,6 +22,13 @@ import java.util.Comparator;
 
 public final class ObjectToStringComparator implements Comparator<Object>, 
Serializable {
 
+    /**
+     * Singleton instance.
+     *
+     * @since 4.5
+     */
+    public final ObjectToStringComparator INSTANCE = new 
ObjectToStringComparator();
+
     private static final long serialVersionUID = 1L;
 
     @Override

Reply via email to