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/05/30 11:45:40 UTC

(commons-configuration) 13/24: 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 c030f364f6e096b33fd8a01291fec551c1449169
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu May 30 07:43:37 2024 -0400

    Use final
---
 .../beanutils/TestConfigurationDynaBean.java       | 32 +++++++++++-----------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/test/java/org/apache/commons/configuration2/beanutils/TestConfigurationDynaBean.java b/src/test/java/org/apache/commons/configuration2/beanutils/TestConfigurationDynaBean.java
index ae631fac..7f579abd 100644
--- a/src/test/java/org/apache/commons/configuration2/beanutils/TestConfigurationDynaBean.java
+++ b/src/test/java/org/apache/commons/configuration2/beanutils/TestConfigurationDynaBean.java
@@ -53,22 +53,22 @@ public class TestConfigurationDynaBean {
      * The set of property names we expect to have returned when calling {@code getDynaProperties()}. You should update this
      * list when new properties are added to TestBean.
      */
-    private String[] properties = {"booleanProperty", "booleanSecond", "doubleProperty", "floatProperty", "intProperty", "longProperty", "mappedProperty.key1",
-        "mappedProperty.key2", "mappedProperty.key3", "mappedIntProperty.key1", "shortProperty", "stringProperty", "byteProperty", "charProperty"};
-
-    private Object[] values = {Boolean.TRUE, Boolean.TRUE, Double.MAX_VALUE, Float.MAX_VALUE, Integer.MAX_VALUE,
-        Long.MAX_VALUE, "First Value", "Second Value", "Third Value", Integer.MAX_VALUE, Short.MAX_VALUE,
-        "This is a string", Byte.MAX_VALUE, Character.MAX_VALUE};
-
-    private int[] intArray = {0, 10, 20, 30, 40};
-    private boolean[] booleanArray = {true, false, true, false, true};
-    private char[] charArray = {'a', 'b', 'c', 'd', 'e'};
-    private byte[] byteArray = {0, 10, 20, 30, 40};
-    private long[] longArray = {0, 10, 20, 30, 40};
-    private short[] shortArray = {0, 10, 20, 30, 40};
-    private float[] floatArray = {0, 10, 20, 30, 40};
-    private double[] doubleArray = {0.0, 10.0, 20.0, 30.0, 40.0};
-    private String[] stringArray = {"String 0", "String 1", "String 2", "String 3", "String 4"};
+    private final String[] properties = {"booleanProperty", "booleanSecond", "doubleProperty", "floatProperty", "intProperty", "longProperty",
+            "mappedProperty.key1", "mappedProperty.key2", "mappedProperty.key3", "mappedIntProperty.key1", "shortProperty", "stringProperty", "byteProperty",
+            "charProperty"};
+
+    private final Object[] values = {Boolean.TRUE, Boolean.TRUE, Double.MAX_VALUE, Float.MAX_VALUE, Integer.MAX_VALUE, Long.MAX_VALUE, "First Value",
+            "Second Value", "Third Value", Integer.MAX_VALUE, Short.MAX_VALUE, "This is a string", Byte.MAX_VALUE, Character.MAX_VALUE};
+
+    private final int[] intArray = {0, 10, 20, 30, 40};
+    private final boolean[] booleanArray = {true, false, true, false, true};
+    private final char[] charArray = {'a', 'b', 'c', 'd', 'e'};
+    private final byte[] byteArray = {0, 10, 20, 30, 40};
+    private final long[] longArray = {0, 10, 20, 30, 40};
+    private final short[] shortArray = {0, 10, 20, 30, 40};
+    private final float[] floatArray = {0, 10, 20, 30, 40};
+    private final double[] doubleArray = {0.0, 10.0, 20.0, 30.0, 40.0};
+    private final String[] stringArray = {"String 0", "String 1", "String 2", "String 3", "String 4"};
 
     /**
      * Creates the underlying configuration object for the dyna bean.