You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/06/12 12:42:40 UTC
(commons-lang) 03/07: Use final
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
commit 06f8bd936078d80352c85698a7c54eef40d37367
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Thu Jun 12 08:41:24 2025 -0400
Use final
---
src/test/java/org/apache/commons/lang3/math/FractionTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/lang3/math/FractionTest.java b/src/test/java/org/apache/commons/lang3/math/FractionTest.java
index eecb763ef..85b9bd266 100644
--- a/src/test/java/org/apache/commons/lang3/math/FractionTest.java
+++ b/src/test/java/org/apache/commons/lang3/math/FractionTest.java
@@ -638,7 +638,7 @@ void testHashCode() {
"1756395909, 4194598, 1174949894, 42860673"
})
// @formatter:on
- void testHashCodeNotEquals(int f1n, int f1d, int f2n, int f2d) {
+ void testHashCodeNotEquals(final int f1n, final int f1d, final int f2n, final int f2d) {
assertNotEquals(Fraction.getFraction(f1n, f1d), Fraction.getFraction(f2n, f2d));
assertNotEquals(Fraction.getFraction(f1n, f1d).hashCode(), Fraction.getFraction(f2n, f2d).hashCode());
}