Javadoc, in-line comment, and messages typos
diff --git a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpTest.java b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpTest.java
index 1944512..19469e4 100644
--- a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpTest.java
+++ b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpTest.java
@@ -1659,7 +1659,7 @@
         Dfp var6 = var1.newDfp(-0.0d);
         Dfp var5 = var1.newDfp(0L);
 
-        // Checks the contract:  equals-hashcode on var5 and var6
+        // Checks the contract:  equals-hash code on var5 and var6
         Assert.assertTrue(var5.equals(var6) ? var5.hashCode() == var6.hashCode() : true);
     }
 
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractFieldMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractFieldMatrix.java
index dba9df5..7ff0ff0 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractFieldMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractFieldMatrix.java
@@ -992,9 +992,9 @@
     }
 
     /**
-     * Computes a hashcode for the matrix.
+     * Computes a hash code for the matrix.
      *
-     * @return hashcode for matrix
+     * @return hash code for matrix
      */
     @Override
     public int hashCode() {
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractRealMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractRealMatrix.java
index 2f7e073..9c07468 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractRealMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractRealMatrix.java
@@ -975,9 +975,9 @@
     }
 
     /**
-     * Computes a hashcode for the matrix.
+     * Computes a hash code for the matrix.
      *
-     * @return hashcode for matrix
+     * @return hash code for matrix
      */
     @Override
     public int hashCode() {
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java
index 7cdf9bd..3476871 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java
@@ -86,37 +86,37 @@
         int emptyHash = statistic.hashCode();
         statistic2 = (StorelessUnivariateStatistic) getUnivariateStatistic();
         Assert.assertEquals("empty stats should be equal", statistic, statistic2);
-        Assert.assertEquals("empty stats should have the same hashcode",
+        Assert.assertEquals("empty stats should have the same hash code",
                 emptyHash, statistic2.hashCode());
 
         statistic.increment(1d);
         Assert.assertEquals("reflexive, non-empty", statistic, statistic);
         Assert.assertNotEquals("non-empty, compared to empty", statistic, statistic2);
         Assert.assertNotEquals("non-empty, compared to empty", statistic2, statistic);
-        Assert.assertTrue("non-empty stat should have different hashcode from empty stat",
+        Assert.assertTrue("non-empty stat should have different hash code from empty stat",
                 statistic.hashCode() != emptyHash);
 
         statistic2.increment(1d);
         Assert.assertEquals("stats with same data should be equal", statistic, statistic2);
-        Assert.assertEquals("stats with same data should have the same hashcode",
+        Assert.assertEquals("stats with same data should have the same hash code",
                 statistic.hashCode(), statistic2.hashCode());
 
         statistic.increment(Double.POSITIVE_INFINITY);
         Assert.assertNotEquals("stats with different n's should not be equal", statistic2, statistic);
-        Assert.assertTrue("stats with different n's should have different hashcodes",
+        Assert.assertTrue("stats with different n's should have different hash codes",
                 statistic.hashCode() != statistic2.hashCode());
 
         statistic2.increment(Double.POSITIVE_INFINITY);
         Assert.assertEquals("stats with same data should be equal", statistic, statistic2);
-        Assert.assertEquals("stats with same data should have the same hashcode",
+        Assert.assertEquals("stats with same data should have the same hash code",
                 statistic.hashCode(), statistic2.hashCode());
 
         statistic.clear();
         statistic2.clear();
         Assert.assertEquals("cleared stats should be equal", statistic, statistic2);
-        Assert.assertEquals("cleared stats should have thashcode of empty stat",
+        Assert.assertEquals("cleared stats should have thash code of empty stat",
                 emptyHash, statistic2.hashCode());
-        Assert.assertEquals("cleared stats should have thashcode of empty stat",
+        Assert.assertEquals("cleared stats should have thash code of empty stat",
                 emptyHash, statistic.hashCode());
     }
 
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/descriptive/SummaryStatisticsTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/descriptive/SummaryStatisticsTest.java
index e2085a3..d5a2440 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/descriptive/SummaryStatisticsTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/descriptive/SummaryStatisticsTest.java
@@ -174,7 +174,7 @@
         u.addValue(4d);
         Assert.assertNotEquals("different n's should make instances not equal", t, u);
         Assert.assertNotEquals("different n's should make instances not equal", u, t);
-        Assert.assertTrue("different n's should make hashcodes different",
+        Assert.assertTrue("different n's should make hash codes different",
                 u.hashCode() != t.hashCode());
 
         //Add data in same order to t
@@ -184,7 +184,7 @@
         t.addValue(4d);
         Assert.assertEquals("summaries based on same data should be equal", t, u);
         Assert.assertEquals("summaries based on same data should be equal", u, t);
-        Assert.assertEquals("summaries based on same data should have same hashcodes",
+        Assert.assertEquals("summaries based on same data should have same hash codes",
                 u.hashCode(), t.hashCode());
 
         // Clear and make sure summaries are indistinguishable from empty summary