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/03/31 15:32:50 UTC
(commons-collections) branch master updated (8992d2bbd -> 4cac454de)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git
from 8992d2bbd Remove unused import
new b04024463 Next version will be 4.5.0-M1
new 4cac454de Reimplement FixedOrderComparator#equals() and hashCode(), see also #392
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
pom.xml | 967 +++++++++++----------
src/changes/changes.xml | 5 +-
.../comparators/FixedOrderComparator.java | 44 +-
.../comparators/FixedOrderComparatorTest.java | 100 ++-
4 files changed, 581 insertions(+), 535 deletions(-)
(commons-collections) 02/02: Reimplement FixedOrderComparator#equals() and hashCode(), see also #392
Posted by gg...@apache.org.
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
commit 4cac454dedb6072ac614bfe560c85f02d5618ea1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Mar 31 11:32:45 2024 -0400
Reimplement FixedOrderComparator#equals() and hashCode(), see also #392
---
src/changes/changes.xml | 3 +
.../comparators/FixedOrderComparator.java | 44 ++-------
.../comparators/FixedOrderComparatorTest.java | 100 +++++++++++++++++----
3 files changed, 96 insertions(+), 51 deletions(-)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 2982caa62..203d70d17 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -209,6 +209,9 @@
<action issue="COLLECTIONS-850" dev="ggregory" type="fix" due-to="Gary Gregory, Anirudh Madhavan">
Tests in org.apache.commons.collections4.multimap should not depend on map iteration order, see also #429.
</action>
+ <action issue="COLLECTIONS-850" dev="ggregory" type="fix" due-to="Gary Gregory, Saurabh Rahate">
+ Reimplement FixedOrderComparator#equals() and hashCode(), see also #392.
+ </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/comparators/FixedOrderComparator.java b/src/main/java/org/apache/commons/collections4/comparators/FixedOrderComparator.java
index bd98c69e6..7c00ac38b 100644
--- a/src/main/java/org/apache/commons/collections4/comparators/FixedOrderComparator.java
+++ b/src/main/java/org/apache/commons/collections4/comparators/FixedOrderComparator.java
@@ -201,36 +201,19 @@ public class FixedOrderComparator<T> implements Comparator<T>, Serializable {
return position1.compareTo(position2);
}
- /**
- * Returns {@code true} iff <i>that</i> Object is
- * a {@link Comparator} whose ordering is known to be
- * equivalent to mine.
- * <p>
- * This implementation returns {@code true}
- * iff {@code <i>that</i>} is a {@link FixedOrderComparator}
- * whose attributes are equal to mine.
- *
- * @param object the object to compare to
- * @return true if equal
- */
@Override
- public boolean equals(final Object object) {
- if (this == object) {
+ public boolean equals(Object obj) {
+ if (this == obj) {
return true;
}
- if (null == object) {
+ if (obj == null) {
return false;
}
- if (object.getClass().equals(this.getClass())) {
- final FixedOrderComparator<?> comp = (FixedOrderComparator<?>) object;
- return (null == map ? null == comp.map : map.equals(comp.map)) &&
- (null == unknownObjectBehavior ? null == comp.unknownObjectBehavior :
- unknownObjectBehavior == comp.unknownObjectBehavior &&
- counter == comp.counter &&
- isLocked == comp.isLocked &&
- unknownObjectBehavior == comp.unknownObjectBehavior);
+ if (getClass() != obj.getClass()) {
+ return false;
}
- return false;
+ FixedOrderComparator other = (FixedOrderComparator) obj;
+ return counter == other.counter && isLocked == other.isLocked && Objects.equals(map, other.map) && unknownObjectBehavior == other.unknownObjectBehavior;
}
/**
@@ -242,20 +225,9 @@ public class FixedOrderComparator<T> implements Comparator<T>, Serializable {
return unknownObjectBehavior;
}
- /**
- * Implement a hash code for this comparator that is consistent with
- * {@link #equals(Object) equals}.
- *
- * @return a hash code for this comparator.
- */
@Override
public int hashCode() {
- int total = 17;
- total = total*37 + map.hashCode();
- total = total*37 + (unknownObjectBehavior == null ? 0 : unknownObjectBehavior.hashCode());
- total = total*37 + counter;
- total = total*37 + (isLocked ? 0 : 1);
- return total;
+ return Objects.hash(counter, isLocked, map, unknownObjectBehavior);
}
// Bean methods / state querying methods
diff --git a/src/test/java/org/apache/commons/collections4/comparators/FixedOrderComparatorTest.java b/src/test/java/org/apache/commons/collections4/comparators/FixedOrderComparatorTest.java
index a913acf8e..f8578c63c 100644
--- a/src/test/java/org/apache/commons/collections4/comparators/FixedOrderComparatorTest.java
+++ b/src/test/java/org/apache/commons/collections4/comparators/FixedOrderComparatorTest.java
@@ -28,6 +28,7 @@ import java.util.List;
import java.util.Random;
import org.apache.commons.lang3.ArrayUtils;
+import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
/**
@@ -35,6 +36,80 @@ import org.junit.jupiter.api.Test;
*/
public class FixedOrderComparatorTest extends AbstractComparatorTest<String> {
+ @Nested
+ class Equals {
+
+ @Test
+ void expectFalseWhenBothComparatorsWithDifferentItems() {
+ FixedOrderComparator<Integer> comparator1 = new FixedOrderComparator<>(1, 2, 3);
+ FixedOrderComparator<Integer> comparator2 = new FixedOrderComparator<>(2, 3, 4);
+ assertFalse(comparator1.equals(comparator2));
+ }
+
+ @Test
+ void expectFalseWhenBothComparatorsWithDifferentUnknownObjectBehavior() {
+ FixedOrderComparator<Integer> comparator1 = new FixedOrderComparator<>();
+ comparator1.setUnknownObjectBehavior(FixedOrderComparator.UnknownObjectBehavior.BEFORE);
+ FixedOrderComparator<Integer> comparator2 = new FixedOrderComparator<>();
+ comparator2.setUnknownObjectBehavior(FixedOrderComparator.UnknownObjectBehavior.AFTER);
+ assertFalse(comparator1.equals(comparator2));
+ }
+
+ @Test
+ void expectFalseWhenFixedOrderComparatorIsComparedWithNull() {
+ FixedOrderComparator<Integer> comparator = new FixedOrderComparator<>();
+ assertFalse(comparator.equals(null));
+ }
+
+
+ @Test
+ void expectFalseWhenFixedOrderComparatorIsComparedWithOtherObject() {
+ FixedOrderComparator<Integer> comparator = new FixedOrderComparator<>();
+ assertFalse(comparator.equals(new Object()));
+ }
+
+ @Test
+ void expectFalseWhenOneComparatorIsLocked() {
+ FixedOrderComparator<Integer> comparator1 = new FixedOrderComparator<>(1, 2, 3);
+ FixedOrderComparator<Integer> comparator2 = new FixedOrderComparator<>(1, 2, 3);
+ comparator2.compare(1, 2);
+ assertFalse(comparator1.equals(comparator2));
+ }
+
+ @Test
+ void expectFalseWhenOneComparatorsWithDuplicateItems() {
+ FixedOrderComparator<Integer> comparator1 = new FixedOrderComparator<>(1, 2, 3);
+ FixedOrderComparator<Integer> comparator2 = new FixedOrderComparator<>(1, 2, 3, 3);
+ assertFalse(comparator1.equals(comparator2));
+ }
+
+ @Test
+ void expectTrueWhenBothComparatorsAreLocked() {
+ FixedOrderComparator<Integer> comparator1 = new FixedOrderComparator<>(1, 2, 3);
+ FixedOrderComparator<Integer> comparator2 = new FixedOrderComparator<>(1, 2, 3);
+ comparator1.compare(1, 2);
+ comparator2.compare(1, 2);
+ assertTrue(comparator1.equals(comparator2));
+ }
+
+ @Test
+ void expectTrueWhenBothComparatorsWithoutAnyItems() {
+ FixedOrderComparator<Integer> comparator1 = new FixedOrderComparator<>();
+ FixedOrderComparator<Integer> comparator2 = new FixedOrderComparator<>();
+ assertTrue(comparator1.equals(comparator2));
+ }
+
+ @Test
+ void expectTrueWhenBothObjectsAreSame() {
+ FixedOrderComparator<Integer> comparator = new FixedOrderComparator<>();
+ assertTrue(comparator.equals(comparator));
+ }
+ }
+
+ //
+ // Initialization and busywork
+ //
+
/**
* Top cities of the world, by population including metro areas.
*/
@@ -52,17 +127,13 @@ public class FixedOrderComparatorTest extends AbstractComparatorTest<String> {
};
//
- // Initialization and busywork
+ // Set up and tear down
//
public FixedOrderComparatorTest() {
super(FixedOrderComparatorTest.class.getSimpleName());
}
- //
- // Set up and tear down
- //
-
/** Shuffles the keys and asserts that the comparator sorts them back to
* their original order.
*/
@@ -107,11 +178,6 @@ public class FixedOrderComparatorTest extends AbstractComparatorTest<String> {
return Arrays.asList(topCities);
}
- @Override
- public String getCompatibilityVersion() {
- return "4";
- }
-
// public void testCreate() throws Exception {
// writeExternalFormToDisk((java.io.Serializable) makeObject(), "src/test/resources/data/test/FixedOrderComparator.version4.obj");
// }
@@ -120,6 +186,11 @@ public class FixedOrderComparatorTest extends AbstractComparatorTest<String> {
// The tests
//
+ @Override
+ public String getCompatibilityVersion() {
+ return "4";
+ }
+
@Override
public Comparator<String> makeObject() {
return new FixedOrderComparator<>(topCities);
@@ -178,6 +249,10 @@ public class FixedOrderComparatorTest extends AbstractComparatorTest<String> {
assertComparatorYieldsOrder(keys, comparator);
}
+ //
+ // Helper methods
+ //
+
/**
* Tests whether or not updates are disabled after a comparison is made.
*/
@@ -195,10 +270,6 @@ public class FixedOrderComparatorTest extends AbstractComparatorTest<String> {
"Should have thrown an UnsupportedOperationException");
}
- //
- // Helper methods
- //
-
@Test
public void testUnknownObjectBehavior() {
FixedOrderComparator<String> comparator = new FixedOrderComparator<>(topCities);
@@ -233,5 +304,4 @@ public class FixedOrderComparatorTest extends AbstractComparatorTest<String> {
assertEquals(-1, comparator.compare("New York", "Minneapolis"));
assertEquals( 0, comparator.compare("Minneapolis", "St Paul"));
}
-
}
(commons-collections) 01/02: Next version will be 4.5.0-M1
Posted by gg...@apache.org.
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
commit b04024463010aaa98782af33e78ec71a4756eb7a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Mar 31 11:30:25 2024 -0400
Next version will be 4.5.0-M1
---
pom.xml | 967 ++++++++++++++++++++++++------------------------
src/changes/changes.xml | 2 +-
2 files changed, 485 insertions(+), 484 deletions(-)
diff --git a/pom.xml b/pom.xml
index 5834f01fe..6bdeb7cf0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>commons-collections4</artifactId>
- <version>4.5-SNAPSHOT</version>
+ <version>4.5.0-M1-SNAPSHOT</version>
<name>Apache Commons Collections</name>
<inceptionYear>2001</inceptionYear>
@@ -42,488 +42,67 @@
<url>https://gitbox.apache.org/repos/asf?p=commons-collections.git</url>
</scm>
- <developers>
- <developer>
- <name>Matt Benson</name>
- <id>mbenson</id>
- </developer>
- <developer>
- <name>James Carman</name>
- <id>jcarman</id>
- </developer>
- <developer>
- <name>Stephen Colebourne</name>
- <id>scolebourne</id>
- </developer>
- <developer>
- <name>Robert Burrell Donkin</name>
- <id>rdonkin</id>
- </developer>
- <developer>
- <name>Morgan Delagrange</name>
- <id>morgand</id>
- </developer>
- <developer>
- <id>ggregory</id>
- <name>Gary Gregory</name>
- <email>ggregory at apache.org</email>
- <url>https://www.garygregory.com</url>
- <organization>The Apache Software Foundation</organization>
- <organizationUrl>https://www.apache.org/</organizationUrl>
- <roles>
- <role>PMC Member</role>
- </roles>
- <timezone>America/New_York</timezone>
- <properties>
- <picUrl>https://people.apache.org/~ggregory/img/garydgregory80.png</picUrl>
- </properties>
- </developer>
- <developer>
- <name>Matthew Hawthorne</name>
- <id>matth</id>
- </developer>
- <developer>
- <name>Dipanjan Laha</name>
- <id>dlaha</id>
- </developer>
- <developer>
- <name>Geir Magnusson</name>
- <id>geirm</id>
- </developer>
- <developer>
- <name>Luc Maisonobe</name>
- <id>luc</id>
- </developer>
- <developer>
- <name>Craig McClanahan</name>
- <id>craigmcc</id>
- </developer>
- <developer>
- <name>Thomas Neidhart</name>
- <id>tn</id>
- </developer>
- <developer>
- <name>Adrian Nistor</name>
- <id>adriannistor</id>
- </developer>
- <developer>
- <name>Arun M. Thomas</name>
- <id>amamment</id>
- </developer>
- <developer>
- <name>Rodney Waldhoff</name>
- <id>rwaldhoff</id>
- </developer>
- <developer>
- <name>Henri Yandell</name>
- <id>bayard</id>
- </developer>
- <developer>
- <name>Rob Tompkins</name>
- <id>chtompki</id>
- </developer>
- </developers>
+ <dependencies>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-engine</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-params</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest</artifactId>
+ <version>2.2</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.easymock</groupId>
+ <artifactId>easymock</artifactId>
+ <version>5.2.0</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-lang3</artifactId>
+ <version>3.14.0</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>2.16.0</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>1.16.1</version>
+ <optional>true</optional>
+ </dependency>
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava-testlib</artifactId>
+ <version>33.1.0-jre</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
- <contributors>
- <contributor>
- <name>Rafael U. C. Afonso</name>
- </contributor>
- <contributor>
- <name>Max Rydahl Andersen</name>
- </contributor>
- <contributor>
- <name>Avalon</name>
- </contributor>
- <contributor>
- <name>Federico Barbieri</name>
- </contributor>
- <contributor>
- <name>Jeffrey Barnes</name>
- </contributor>
- <contributor>
- <name>Nicola Ken Barozzi</name>
- </contributor>
- <contributor>
- <name>Arron Bates</name>
- </contributor>
- <contributor>
- <name>Sebastian Bazley</name>
- </contributor>
- <contributor>
- <name>Benjamin Bentmann</name>
- </contributor>
- <contributor>
- <name>Ola Berg</name>
- </contributor>
- <contributor>
- <name>Sam Berlin</name>
- </contributor>
- <contributor>
- <name>Christopher Berry</name>
- </contributor>
- <contributor>
- <name>Nathan Beyer</name>
- </contributor>
- <contributor>
- <name>Rune Peter Bjørnstad</name>
- </contributor>
- <contributor>
- <name>Janek Bogucki</name>
- </contributor>
- <contributor>
- <name>Maarten Brak</name>
- </contributor>
- <contributor>
- <name>Dave Bryson</name>
- </contributor>
- <contributor>
- <name>Chuck Burdick</name>
- </contributor>
- <contributor>
- <name>Julien Buret</name>
- </contributor>
- <contributor>
- <name>Josh Cain</name>
- </contributor>
- <contributor>
- <name>Jonathan Carlson</name>
- </contributor>
- <contributor>
- <name>Ram Chidambaram</name>
- </contributor>
- <contributor>
- <name>Steve Clark</name>
- </contributor>
- <contributor>
- <name>Benoit Corne</name>
- </contributor>
- <contributor>
- <name>Eric Crampton</name>
- </contributor>
- <contributor>
- <name>Dimiter Dimitrov</name>
- </contributor>
- <contributor>
- <name>Peter Donald</name>
- </contributor>
- <contributor>
- <name>Steve Downey</name>
- </contributor>
- <contributor>
- <name>Rich Dougherty</name>
- </contributor>
- <contributor>
- <name>Tom Dunham</name>
- </contributor>
- <contributor>
- <name>Stefano Fornari</name>
- </contributor>
- <contributor>
- <name>Andrew Freeman</name>
- </contributor>
- <contributor>
- <name>Gerhard Froehlich</name>
- </contributor>
- <contributor>
- <name>Goran Hacek</name>
- </contributor>
- <contributor>
- <name>David Hay</name>
- </contributor>
- <contributor>
- <name>Mario Ivankovits</name>
- </contributor>
- <contributor>
- <name>Paul Jack</name>
- </contributor>
- <contributor>
- <name>Eric Johnson</name>
- </contributor>
- <contributor>
- <name>Kent Johnson</name>
- </contributor>
- <contributor>
- <name>Marc Johnson</name>
- </contributor>
- <contributor>
- <name>Roger Kapsi</name>
- </contributor>
- <contributor>
- <name>Nissim Karpenstein</name>
- </contributor>
- <contributor>
- <name>Shinobu Kawai</name>
- </contributor>
- <contributor>
- <name>Stephen Kestle</name>
- </contributor>
- <contributor>
- <name>Mohan Kishore</name>
- </contributor>
- <contributor>
- <name>Simon Kitching</name>
- </contributor>
- <contributor>
- <name>Thomas Knych</name>
- </contributor>
- <contributor>
- <name>Serge Knystautas</name>
- </contributor>
- <contributor>
- <name>Peter KoBek</name>
- </contributor>
- <contributor>
- <name>Jordan Krey</name>
- </contributor>
- <contributor>
- <name>Olaf Krische</name>
- </contributor>
- <contributor>
- <name>Guilhem Lavaux</name>
- </contributor>
- <contributor>
- <name>Paul Legato</name>
- </contributor>
- <contributor>
- <name>David Leppik</name>
- </contributor>
- <contributor>
- <name>Berin Loritsch</name>
- </contributor>
- <contributor>
- <name>Hendrik Maryns</name>
- </contributor>
- <contributor>
- <name>Stefano Mazzocchi</name>
- </contributor>
- <contributor>
- <name>Brian McCallister</name>
- </contributor>
- <contributor>
- <name>David Meikle</name>
- </contributor>
- <contributor>
- <name>Steven Melzer</name>
- </contributor>
- <contributor>
- <name>Leon Messerschmidt</name>
- </contributor>
- <contributor>
- <name>Mauricio S. Moura</name>
- </contributor>
- <contributor>
- <name>Kasper Nielsen</name>
- </contributor>
- <contributor>
- <name>Stanislaw Osinski</name>
- </contributor>
- <contributor>
- <name>Alban Peignier</name>
- </contributor>
- <contributor>
- <name>Mike Pettypiece</name>
- </contributor>
- <contributor>
- <name>Steve Phelps</name>
- </contributor>
- <contributor>
- <name>Ilkka Priha</name>
- </contributor>
- <contributor>
- <name>Jonas Van Poucke</name>
- </contributor>
- <contributor>
- <name>Will Pugh</name>
- </contributor>
- <contributor>
- <name>Herve Quiroz</name>
- </contributor>
- <contributor>
- <name>Daniel Rall</name>
- </contributor>
- <contributor>
- <name>Robert Ribnitz</name>
- </contributor>
- <contributor>
- <name>Huw Roberts</name>
- </contributor>
- <contributor>
- <name>Henning P. Schmiedehausen</name>
- </contributor>
- <contributor>
- <name>Joerg Schmuecker</name>
- </contributor>
- <contributor>
- <name>Howard Lewis Ship</name>
- </contributor>
- <contributor>
- <name>Joe Raysa</name>
- </contributor>
- <contributor>
- <name>Jeff Rodriguez</name>
- </contributor>
- <contributor>
- <name>Ashwin S</name>
- </contributor>
- <contributor>
- <name>Jordane Sarda</name>
- </contributor>
- <contributor>
- <name>Thomas Schapitz</name>
- </contributor>
- <contributor>
- <name>Jon Schewe</name>
- </contributor>
- <contributor>
- <name>Andreas Schlosser</name>
- </contributor>
- <contributor>
- <name>Christian Siefkes</name>
- </contributor>
- <contributor>
- <name>Michael Smith</name>
- </contributor>
- <contributor>
- <name>Stephen Smith</name>
- </contributor>
- <contributor>
- <name>Jan Sorensen</name>
- </contributor>
- <contributor>
- <name>Jon S. Stevens</name>
- </contributor>
- <contributor>
- <name>James Strachan</name>
- </contributor>
- <contributor>
- <name>Leo Sutic</name>
- </contributor>
- <contributor>
- <name>Radford Tam</name>
- </contributor>
- <contributor>
- <name>Chris Tilden</name>
- </contributor>
- <contributor>
- <name>Neil O'Toole</name>
- </contributor>
- <contributor>
- <name>Jeff Turner</name>
- </contributor>
- <contributor>
- <name>Kazuya Ujihara</name>
- </contributor>
- <contributor>
- <name>Thomas Vahrst</name>
- </contributor>
- <contributor>
- <name>Jeff Varszegi</name>
- </contributor>
- <contributor>
- <name>Ralph Wagner</name>
- </contributor>
- <contributor>
- <name>Hollis Waite</name>
- </contributor>
- <contributor>
- <name>David Weinrich</name>
- </contributor>
- <contributor>
- <name>Dieter Wimberger</name>
- </contributor>
- <contributor>
- <name>Serhiy Yevtushenko</name>
- </contributor>
- <contributor>
- <name>Sai Zhang</name>
- </contributor>
- <contributor>
- <name>Jason van Zyl</name>
- </contributor>
- <contributor>
- <name>Geoff Schoeman</name>
- </contributor>
- <contributor>
- <name>Goncalo Marques</name>
- </contributor>
- <contributor>
- <name>Vamsi Kavuri</name>
- </contributor>
- <contributor>
- <name>Claude Warren</name>
- </contributor>
- <contributor>
- <name>Chen Guoping</name>
- </contributor>
- <contributor>
- <name>Stefano Cordio</name>
- </contributor>
- <contributor>
- <name>Arturo Bernal</name>
- </contributor>
- </contributors>
-
- <dependencies>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-api</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-engine</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-params</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest</artifactId>
- <version>2.2</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.easymock</groupId>
- <artifactId>easymock</artifactId>
- <version>5.2.0</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-lang3</artifactId>
- <version>3.14.0</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>2.16.0</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>commons-codec</groupId>
- <artifactId>commons-codec</artifactId>
- <version>1.16.1</version>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava-testlib</artifactId>
- <version>33.1.0-jre</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <distributionManagement>
- <site>
- <id>apache.website</id>
- <name>Apache Commons Site</name>
- <url>${commons.deployment.protocol}://people.apache.org/www/commons.apache.org/${commons.componentid}</url>
- </site>
- </distributionManagement>
+ <distributionManagement>
+ <site>
+ <id>apache.website</id>
+ <name>Apache Commons Site</name>
+ <url>${commons.deployment.protocol}://people.apache.org/www/commons.apache.org/${commons.componentid}</url>
+ </site>
+ </distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -544,7 +123,8 @@
<commons.module.name>org.apache.commons.collections4</commons.module.name>
<!-- Current 4.x release series -->
- <commons.release.version>4.5</commons.release.version>
+ <commons.release.version>4.5.0-M1</commons.release.version>
+ <commons.release.version>4.5.0</commons.release.version>
<commons.release.desc>(Requires Java 8 or above)</commons.release.desc>
<!-- Previous 4.2 release on Java 7 -->
@@ -802,5 +382,426 @@
</profile>
</profiles>
+ <developers>
+ <developer>
+ <name>Matt Benson</name>
+ <id>mbenson</id>
+ </developer>
+ <developer>
+ <name>James Carman</name>
+ <id>jcarman</id>
+ </developer>
+ <developer>
+ <name>Stephen Colebourne</name>
+ <id>scolebourne</id>
+ </developer>
+ <developer>
+ <name>Robert Burrell Donkin</name>
+ <id>rdonkin</id>
+ </developer>
+ <developer>
+ <name>Morgan Delagrange</name>
+ <id>morgand</id>
+ </developer>
+ <developer>
+ <id>ggregory</id>
+ <name>Gary Gregory</name>
+ <email>ggregory at apache.org</email>
+ <url>https://www.garygregory.com</url>
+ <organization>The Apache Software Foundation</organization>
+ <organizationUrl>https://www.apache.org/</organizationUrl>
+ <roles>
+ <role>PMC Member</role>
+ </roles>
+ <timezone>America/New_York</timezone>
+ <properties>
+ <picUrl>https://people.apache.org/~ggregory/img/garydgregory80.png</picUrl>
+ </properties>
+ </developer>
+ <developer>
+ <name>Matthew Hawthorne</name>
+ <id>matth</id>
+ </developer>
+ <developer>
+ <name>Dipanjan Laha</name>
+ <id>dlaha</id>
+ </developer>
+ <developer>
+ <name>Geir Magnusson</name>
+ <id>geirm</id>
+ </developer>
+ <developer>
+ <name>Luc Maisonobe</name>
+ <id>luc</id>
+ </developer>
+ <developer>
+ <name>Craig McClanahan</name>
+ <id>craigmcc</id>
+ </developer>
+ <developer>
+ <name>Thomas Neidhart</name>
+ <id>tn</id>
+ </developer>
+ <developer>
+ <name>Adrian Nistor</name>
+ <id>adriannistor</id>
+ </developer>
+ <developer>
+ <name>Arun M. Thomas</name>
+ <id>amamment</id>
+ </developer>
+ <developer>
+ <name>Rodney Waldhoff</name>
+ <id>rwaldhoff</id>
+ </developer>
+ <developer>
+ <name>Henri Yandell</name>
+ <id>bayard</id>
+ </developer>
+ <developer>
+ <name>Rob Tompkins</name>
+ <id>chtompki</id>
+ </developer>
+ </developers>
+
+ <contributors>
+ <contributor>
+ <name>Rafael U. C. Afonso</name>
+ </contributor>
+ <contributor>
+ <name>Max Rydahl Andersen</name>
+ </contributor>
+ <contributor>
+ <name>Avalon</name>
+ </contributor>
+ <contributor>
+ <name>Federico Barbieri</name>
+ </contributor>
+ <contributor>
+ <name>Jeffrey Barnes</name>
+ </contributor>
+ <contributor>
+ <name>Nicola Ken Barozzi</name>
+ </contributor>
+ <contributor>
+ <name>Arron Bates</name>
+ </contributor>
+ <contributor>
+ <name>Sebastian Bazley</name>
+ </contributor>
+ <contributor>
+ <name>Benjamin Bentmann</name>
+ </contributor>
+ <contributor>
+ <name>Ola Berg</name>
+ </contributor>
+ <contributor>
+ <name>Sam Berlin</name>
+ </contributor>
+ <contributor>
+ <name>Christopher Berry</name>
+ </contributor>
+ <contributor>
+ <name>Nathan Beyer</name>
+ </contributor>
+ <contributor>
+ <name>Rune Peter Bjørnstad</name>
+ </contributor>
+ <contributor>
+ <name>Janek Bogucki</name>
+ </contributor>
+ <contributor>
+ <name>Maarten Brak</name>
+ </contributor>
+ <contributor>
+ <name>Dave Bryson</name>
+ </contributor>
+ <contributor>
+ <name>Chuck Burdick</name>
+ </contributor>
+ <contributor>
+ <name>Julien Buret</name>
+ </contributor>
+ <contributor>
+ <name>Josh Cain</name>
+ </contributor>
+ <contributor>
+ <name>Jonathan Carlson</name>
+ </contributor>
+ <contributor>
+ <name>Ram Chidambaram</name>
+ </contributor>
+ <contributor>
+ <name>Steve Clark</name>
+ </contributor>
+ <contributor>
+ <name>Benoit Corne</name>
+ </contributor>
+ <contributor>
+ <name>Eric Crampton</name>
+ </contributor>
+ <contributor>
+ <name>Dimiter Dimitrov</name>
+ </contributor>
+ <contributor>
+ <name>Peter Donald</name>
+ </contributor>
+ <contributor>
+ <name>Steve Downey</name>
+ </contributor>
+ <contributor>
+ <name>Rich Dougherty</name>
+ </contributor>
+ <contributor>
+ <name>Tom Dunham</name>
+ </contributor>
+ <contributor>
+ <name>Stefano Fornari</name>
+ </contributor>
+ <contributor>
+ <name>Andrew Freeman</name>
+ </contributor>
+ <contributor>
+ <name>Gerhard Froehlich</name>
+ </contributor>
+ <contributor>
+ <name>Goran Hacek</name>
+ </contributor>
+ <contributor>
+ <name>David Hay</name>
+ </contributor>
+ <contributor>
+ <name>Mario Ivankovits</name>
+ </contributor>
+ <contributor>
+ <name>Paul Jack</name>
+ </contributor>
+ <contributor>
+ <name>Eric Johnson</name>
+ </contributor>
+ <contributor>
+ <name>Kent Johnson</name>
+ </contributor>
+ <contributor>
+ <name>Marc Johnson</name>
+ </contributor>
+ <contributor>
+ <name>Roger Kapsi</name>
+ </contributor>
+ <contributor>
+ <name>Nissim Karpenstein</name>
+ </contributor>
+ <contributor>
+ <name>Shinobu Kawai</name>
+ </contributor>
+ <contributor>
+ <name>Stephen Kestle</name>
+ </contributor>
+ <contributor>
+ <name>Mohan Kishore</name>
+ </contributor>
+ <contributor>
+ <name>Simon Kitching</name>
+ </contributor>
+ <contributor>
+ <name>Thomas Knych</name>
+ </contributor>
+ <contributor>
+ <name>Serge Knystautas</name>
+ </contributor>
+ <contributor>
+ <name>Peter KoBek</name>
+ </contributor>
+ <contributor>
+ <name>Jordan Krey</name>
+ </contributor>
+ <contributor>
+ <name>Olaf Krische</name>
+ </contributor>
+ <contributor>
+ <name>Guilhem Lavaux</name>
+ </contributor>
+ <contributor>
+ <name>Paul Legato</name>
+ </contributor>
+ <contributor>
+ <name>David Leppik</name>
+ </contributor>
+ <contributor>
+ <name>Berin Loritsch</name>
+ </contributor>
+ <contributor>
+ <name>Hendrik Maryns</name>
+ </contributor>
+ <contributor>
+ <name>Stefano Mazzocchi</name>
+ </contributor>
+ <contributor>
+ <name>Brian McCallister</name>
+ </contributor>
+ <contributor>
+ <name>David Meikle</name>
+ </contributor>
+ <contributor>
+ <name>Steven Melzer</name>
+ </contributor>
+ <contributor>
+ <name>Leon Messerschmidt</name>
+ </contributor>
+ <contributor>
+ <name>Mauricio S. Moura</name>
+ </contributor>
+ <contributor>
+ <name>Kasper Nielsen</name>
+ </contributor>
+ <contributor>
+ <name>Stanislaw Osinski</name>
+ </contributor>
+ <contributor>
+ <name>Alban Peignier</name>
+ </contributor>
+ <contributor>
+ <name>Mike Pettypiece</name>
+ </contributor>
+ <contributor>
+ <name>Steve Phelps</name>
+ </contributor>
+ <contributor>
+ <name>Ilkka Priha</name>
+ </contributor>
+ <contributor>
+ <name>Jonas Van Poucke</name>
+ </contributor>
+ <contributor>
+ <name>Will Pugh</name>
+ </contributor>
+ <contributor>
+ <name>Herve Quiroz</name>
+ </contributor>
+ <contributor>
+ <name>Daniel Rall</name>
+ </contributor>
+ <contributor>
+ <name>Robert Ribnitz</name>
+ </contributor>
+ <contributor>
+ <name>Huw Roberts</name>
+ </contributor>
+ <contributor>
+ <name>Henning P. Schmiedehausen</name>
+ </contributor>
+ <contributor>
+ <name>Joerg Schmuecker</name>
+ </contributor>
+ <contributor>
+ <name>Howard Lewis Ship</name>
+ </contributor>
+ <contributor>
+ <name>Joe Raysa</name>
+ </contributor>
+ <contributor>
+ <name>Jeff Rodriguez</name>
+ </contributor>
+ <contributor>
+ <name>Ashwin S</name>
+ </contributor>
+ <contributor>
+ <name>Jordane Sarda</name>
+ </contributor>
+ <contributor>
+ <name>Thomas Schapitz</name>
+ </contributor>
+ <contributor>
+ <name>Jon Schewe</name>
+ </contributor>
+ <contributor>
+ <name>Andreas Schlosser</name>
+ </contributor>
+ <contributor>
+ <name>Christian Siefkes</name>
+ </contributor>
+ <contributor>
+ <name>Michael Smith</name>
+ </contributor>
+ <contributor>
+ <name>Stephen Smith</name>
+ </contributor>
+ <contributor>
+ <name>Jan Sorensen</name>
+ </contributor>
+ <contributor>
+ <name>Jon S. Stevens</name>
+ </contributor>
+ <contributor>
+ <name>James Strachan</name>
+ </contributor>
+ <contributor>
+ <name>Leo Sutic</name>
+ </contributor>
+ <contributor>
+ <name>Radford Tam</name>
+ </contributor>
+ <contributor>
+ <name>Chris Tilden</name>
+ </contributor>
+ <contributor>
+ <name>Neil O'Toole</name>
+ </contributor>
+ <contributor>
+ <name>Jeff Turner</name>
+ </contributor>
+ <contributor>
+ <name>Kazuya Ujihara</name>
+ </contributor>
+ <contributor>
+ <name>Thomas Vahrst</name>
+ </contributor>
+ <contributor>
+ <name>Jeff Varszegi</name>
+ </contributor>
+ <contributor>
+ <name>Ralph Wagner</name>
+ </contributor>
+ <contributor>
+ <name>Hollis Waite</name>
+ </contributor>
+ <contributor>
+ <name>David Weinrich</name>
+ </contributor>
+ <contributor>
+ <name>Dieter Wimberger</name>
+ </contributor>
+ <contributor>
+ <name>Serhiy Yevtushenko</name>
+ </contributor>
+ <contributor>
+ <name>Sai Zhang</name>
+ </contributor>
+ <contributor>
+ <name>Jason van Zyl</name>
+ </contributor>
+ <contributor>
+ <name>Geoff Schoeman</name>
+ </contributor>
+ <contributor>
+ <name>Goncalo Marques</name>
+ </contributor>
+ <contributor>
+ <name>Vamsi Kavuri</name>
+ </contributor>
+ <contributor>
+ <name>Claude Warren</name>
+ </contributor>
+ <contributor>
+ <name>Chen Guoping</name>
+ </contributor>
+ <contributor>
+ <name>Stefano Cordio</name>
+ </contributor>
+ <contributor>
+ <name>Arturo Bernal</name>
+ </contributor>
+ </contributors>
+
</project>
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 8ac3a40da..2982caa62 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -22,7 +22,7 @@
<title>Apache Commons Collections Release Notes</title>
</properties>
<body>
- <release version="4.5" date="2020-MM-DD" description="Maintenance release.">
+ <release version="4.5.0-M1" date="YYYY-MM-DD" description="Maintenance release.">
<!-- FIX -->
<action issue="COLLECTIONS-780" dev="kinow" type="fix" due-to="Arturo Bernal">
Use assertThrows V2.