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 2024/07/09 14:11:46 UTC
(commons-configuration) 03/03: 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-configuration.git
commit 3a75bac034f17bca16826671d4fe0f338433a627
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jul 9 10:11:37 2024 -0400
Use final
---
src/test/java/org/apache/commons/configuration2/convert/MyNumber.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/configuration2/convert/MyNumber.java b/src/test/java/org/apache/commons/configuration2/convert/MyNumber.java
index e4c4f9ff..0e88a4ee 100644
--- a/src/test/java/org/apache/commons/configuration2/convert/MyNumber.java
+++ b/src/test/java/org/apache/commons/configuration2/convert/MyNumber.java
@@ -46,14 +46,14 @@ public final class MyNumber extends Number {
}
@Override
- public boolean equals(Object obj) {
+ public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof MyNumber)) {
return false;
}
- MyNumber other = (MyNumber) obj;
+ final MyNumber other = (MyNumber) obj;
return value == other.value;
}