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-lang.git
The following commit(s) were added to refs/heads/master by this push:
new ad710950a Javadoc, in-line comment, and messages typos
ad710950a is described below
commit ad710950a285ab2f72108fe98be63a7325ae42ce
Author: Gary Gregory <[email protected]>
AuthorDate: Fri May 19 08:59:46 2023 -0400
Javadoc, in-line comment, and messages typos
---
.../commons/lang3/text/ExtendedMessageFormatTest.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git
a/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java
b/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java
index f773b0697..d8e8f5ff6 100644
--- a/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java
+++ b/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java
@@ -287,7 +287,7 @@ public class ExtendedMessageFormatTest extends
AbstractLangTest {
}
/**
- * Test equals() and hashcode.
+ * Test equals() and hashCode().
*/
@Test
public void testEqualsHashcode() {
@@ -301,32 +301,32 @@ public class ExtendedMessageFormatTest extends
AbstractLangTest {
// Same object
assertEquals(emf, emf, "same, equals()");
- assertEquals(emf.hashCode(), emf.hashCode(), "same, hashcode()");
+ assertEquals(emf.hashCode(), emf.hashCode(), "same, hashCode()");
// 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
}
/**