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-beanutils.git

commit 1d39faf4300c5b999422956e77b357a8c2c4ce34
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Aug 18 07:35:28 2024 -0400

    Use final
---
 .../java/org/apache/commons/beanutils2/BeanificationTestCase.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/beanutils2/BeanificationTestCase.java 
b/src/test/java/org/apache/commons/beanutils2/BeanificationTestCase.java
index 9dbc4930..b97f4386 100644
--- a/src/test/java/org/apache/commons/beanutils2/BeanificationTestCase.java
+++ b/src/test/java/org/apache/commons/beanutils2/BeanificationTestCase.java
@@ -198,7 +198,7 @@ public class BeanificationTestCase extends TestCase {
             public void run() {
                 try {
                     signal.setSignal(3);
-                    Converter c = (type, value) -> 
ConvertUtils.primitiveToWrapper(Integer.TYPE).cast(new Integer(9));
+                    final Converter c = (type, value) -> 
ConvertUtils.primitiveToWrapper(Integer.TYPE).cast(new Integer(9));
                     ConvertUtils.register(c, Integer.TYPE);
                     BeanUtils.setProperty(bean, "int", new Integer(1));
                 } catch (final Exception e) {
@@ -217,7 +217,7 @@ public class BeanificationTestCase extends TestCase {
         BeanUtils.setProperty(bean, "int", new Integer(1));
         assertEquals("Wrong property value (1)", 1, bean.getInt());
 
-        Converter c = (type, value) -> 
ConvertUtils.primitiveToWrapper(type).cast(new Integer(5));
+        final Converter c = (type, value) -> 
ConvertUtils.primitiveToWrapper(type).cast(new Integer(5));
         ConvertUtils.register(c, Integer.TYPE);
         BeanUtils.setProperty(bean, "int", new Integer(1));
         assertEquals("Wrong property value(2)", 5, bean.getInt());

Reply via email to