Skip to content

Conversation

@avandeursen
Copy link
Contributor

@avandeursen avandeursen commented Jan 6, 2022

I noticed that some corner cases of the equals and serialization methods of the SortedArrayStringMap class were not (unit) tested, and that its hashCode method was not tested at all. This pull request provides small changes to the test suite to address this.

Let me know if you have any questions, or if you would like a similar PR against the master (3.x) branch.

I also included a change earlier made in master on this file to bring the 2.x and 3.x versions more in sync.

Thanks for your hard work on log4j.

Some corner cases of the equals and serialization methods of the
SortedArrayStringMap class were not (unit) tested,
and its hashCode method was not (unit) tested at all.

This commit provides small changes to the test suite to address this.
@avandeursen avandeursen changed the title Expand test suite for equals/hashcode/serialization Expand test suite for SortedArrayStringMap Jan 6, 2022
@vy
Copy link
Member

vy commented Jan 9, 2022

These are great additions! Thanks so much @avandeursen! I will merge the changes as soon as build succeeds.

@vy vy merged commit 4c49101 into apache:release-2.x Jan 9, 2022
vy pushed a commit that referenced this pull request Jan 9, 2022
…ion. (#688)

Some corner cases of the equals and serialization methods of the
SortedArrayStringMap class were not (unit) tested,
and its hashCode method was not (unit) tested at all.

This commit provides small changes to the test suite to address this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants