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 2022/02/13 16:20:33 UTC
[commons-collections] branch master updated: Add singleton ObjectToStringComparator.INSTANCE.
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 <ga...@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