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-text.git
The following commit(s) were added to refs/heads/master by this push: new 606b568d Javadoc, in-line comment, and messages typos 606b568d is described below commit 606b568dd9dd8b4b8050453ab8b160c078d4f13f Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri May 19 09:00:42 2023 -0400 Javadoc, in-line comment, and messages typos --- .../org/apache/commons/text/ExtendedMessageFormatTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/java/org/apache/commons/text/ExtendedMessageFormatTest.java b/src/test/java/org/apache/commons/text/ExtendedMessageFormatTest.java index 94576188..4a29926e 100644 --- a/src/test/java/org/apache/commons/text/ExtendedMessageFormatTest.java +++ b/src/test/java/org/apache/commons/text/ExtendedMessageFormatTest.java @@ -327,7 +327,7 @@ public class ExtendedMessageFormatTest { } /** - * Test equals() and hashcode. + * Test equals() and hashCode(). */ @Test public void testEqualsHashcode() { @@ -343,34 +343,34 @@ public class ExtendedMessageFormatTest { // Same object assertEquals(emf, emf, "same, equals()"); - assertEquals(emf.hashCode(), emf.hashCode(), "same, hashcode()"); + assertEquals(emf.hashCode(), emf.hashCode(), "same, hashCode()"); assertNotEquals(null, emf, "null, equals"); // Equal Object other = new ExtendedMessageFormat(pattern, Locale.US, fmtRegistry); assertEquals(emf, other, "equal, equals()"); - assertEquals(emf.hashCode(), other.hashCode(), "equal, hashcode()"); + assertEquals(emf.hashCode(), other.hashCode(), "equal, hashCode()"); // Different Class other = new OtherExtendedMessageFormat(pattern, Locale.US, fmtRegistry); assertNotEquals(emf, other, "class, equals()"); - assertEquals(emf.hashCode(), other.hashCode(), "class, hashcode()"); // same hashcode + assertEquals(emf.hashCode(), other.hashCode(), "class, hashCode()"); // same hash code // Different pattern other = new ExtendedMessageFormat("X" + pattern, Locale.US, fmtRegistry); assertNotEquals(emf, other, "pattern, equals()"); - assertNotEquals(emf.hashCode(), other.hashCode(), "pattern, hashcode()"); + assertNotEquals(emf.hashCode(), other.hashCode(), "pattern, hashCode()"); // Different registry other = new ExtendedMessageFormat(pattern, Locale.US, otherRegistry); assertNotEquals(emf, other, "registry, equals()"); - assertNotEquals(emf.hashCode(), other.hashCode(), "registry, hashcode()"); + assertNotEquals(emf.hashCode(), other.hashCode(), "registry, hashCode()"); // Different Locale other = new ExtendedMessageFormat(pattern, Locale.FRANCE, fmtRegistry); assertNotEquals(emf, other, "locale, equals()"); - assertEquals(emf.hashCode(), other.hashCode(), "locale, hashcode()"); // same hashcode + assertEquals(emf.hashCode(), other.hashCode(), "locale, hashCode()"); // same hash code } /**