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-math.git
The following commit(s) were added to refs/heads/master by this push:
new fda18906a Javadoc, in-line comment, and messages typos
fda18906a is described below
commit fda18906ac532f0e277ddeda5a94013c2b7c44de
Author: Gary Gregory <[email protected]>
AuthorDate: Fri May 19 09:06:16 2023 -0400
Javadoc, in-line comment, and messages typos
---
.../org/apache/commons/math4/legacy/core/dfp/DfpTest.java | 2 +-
.../commons/math4/legacy/linear/AbstractFieldMatrix.java | 4 ++--
.../commons/math4/legacy/linear/AbstractRealMatrix.java | 4 ++--
.../StorelessUnivariateStatisticAbstractTest.java | 14 +++++++-------
.../legacy/stat/descriptive/SummaryStatisticsTest.java | 4 ++--
5 files changed, 14 insertions(+), 14 deletions(-)
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 194451208..19469e439 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 @@ public class DfpTest extends
ExtendedFieldElementAbstractTest<Dfp> {
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 dba9df559..7ff0ff08b 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 @@ public abstract class AbstractFieldMatrix<T extends
FieldElement<T>>
}
/**
- * 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 2f7e07366..9c074685e 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 @@ public abstract class AbstractRealMatrix
}
/**
- * 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 7cdf9bd55..3476871f9 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 @@ public abstract class
StorelessUnivariateStatisticAbstractTest
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 e2085a32d..d5a24402c 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 @@ public class SummaryStatisticsTest {
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 @@ public class SummaryStatisticsTest {
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