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/02/04 19:10:34 UTC
(commons-validator) 02/19: 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-validator.git
commit 559e04e1314731506696a5952f6d574a191bf933
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Feb 4 14:07:20 2024 -0500
Use final
---
.../commons/validator/routines/checkdigit/AbstractCheckDigitTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/validator/routines/checkdigit/AbstractCheckDigitTest.java b/src/test/java/org/apache/commons/validator/routines/checkdigit/AbstractCheckDigitTest.java
index 9ba931ec..7a9e0c41 100644
--- a/src/test/java/org/apache/commons/validator/routines/checkdigit/AbstractCheckDigitTest.java
+++ b/src/test/java/org/apache/commons/validator/routines/checkdigit/AbstractCheckDigitTest.java
@@ -290,7 +290,7 @@ public abstract class AbstractCheckDigitTest {
// Deserialize the test object
Object result = null;
try (ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray())) {
- ObjectInputStream ois = new ObjectInputStream(bais);
+ final ObjectInputStream ois = new ObjectInputStream(bais);
result = ois.readObject();
} catch (final Exception e) {
fail(routine.getClass().getName() + " error during deserialization: " + e);