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


The following commit(s) were added to refs/heads/master by this push:
     new 24d5790f Use +=
24d5790f is described below

commit 24d5790f395318aa6801dc88c90895160e5c10b8
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Jan 15 09:01:06 2024 -0500

    Use +=
---
 .../java/org/apache/commons/beanutils2/LazyDynaBeanTestCase.java  | 8 ++++----
 .../java/org/apache/commons/beanutils2/LazyDynaMapTestCase.java   | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/beanutils2/LazyDynaBeanTestCase.java 
b/src/test/java/org/apache/commons/beanutils2/LazyDynaBeanTestCase.java
index 38bf84e5..9234a4f5 100644
--- a/src/test/java/org/apache/commons/beanutils2/LazyDynaBeanTestCase.java
+++ b/src/test/java/org/apache/commons/beanutils2/LazyDynaBeanTestCase.java
@@ -155,7 +155,7 @@ public class LazyDynaBeanTestCase extends TestCase {
         assertEquals("Check First Array length is correct", 
Integer.valueOf(index + 1), Integer.valueOf(((LinkedList<?>) 
bean.get(testProperty)).size()));
 
         // Set a second indexed value, should automatically grow the 
LinkedList and set appropriate indexed value
-        index = index + 2;
+        index += 2;
         bean.set(testProperty, index, testInteger1);
         assertEquals("Check Second Indexed Value is correct", testInteger1, 
bean.get(testProperty, index));
         assertEquals("Check Second Array length is correct", 
Integer.valueOf(index + 1), Integer.valueOf(((LinkedList<?>) 
bean.get(testProperty)).size()));
@@ -187,7 +187,7 @@ public class LazyDynaBeanTestCase extends TestCase {
         assertEquals("Check Array length is correct", Integer.valueOf(index + 
1), Integer.valueOf(((String[]) bean.get(testProperty)).length));
 
         // Set a second indexed value, should automatically grow the String[] 
and set appropriate indexed value
-        index = index + 2;
+        index += 2;
         bean.set(testProperty, index, testString2);
         assertEquals("Check Second Indexed Value is correct(a)", testString2, 
bean.get(testProperty, index));
         assertEquals("Check Second Indexed Value is correct(b)", testString2, 
((String[]) bean.get(testProperty))[index]);
@@ -220,7 +220,7 @@ public class LazyDynaBeanTestCase extends TestCase {
         assertEquals("Check Array length is correct", Integer.valueOf(index + 
1), Integer.valueOf(((int[]) bean.get(testProperty)).length));
 
         // Set a second indexed value, should automatically grow the int[] and 
set appropriate indexed value
-        index = index + 2;
+        index += 2;
         bean.set(testProperty, index, testInteger2);
         assertEquals("Check Second Indexed Value is correct(a)", testInteger2, 
bean.get(testProperty, index));
         assertEquals("Check Second Indexed Value is correct(b)", testInteger2, 
Integer.valueOf(((int[]) bean.get(testProperty))[index]));
@@ -248,7 +248,7 @@ public class LazyDynaBeanTestCase extends TestCase {
         assertEquals("Check First Array length is correct", 
Integer.valueOf(index + 1), Integer.valueOf(((ArrayList<?>) 
bean.get(testProperty)).size()));
 
         // Set a second indexed value, should automatically grow the ArrayList 
and set appropriate indexed value
-        index = index + 2;
+        index += 2;
         bean.set(testProperty, index, testString1);
         assertEquals("Check Second Indexed Value is correct", testString1, 
bean.get(testProperty, index));
         assertEquals("Check Second Array length is correct", 
Integer.valueOf(index + 1), Integer.valueOf(((ArrayList<?>) 
bean.get(testProperty)).size()));
diff --git 
a/src/test/java/org/apache/commons/beanutils2/LazyDynaMapTestCase.java 
b/src/test/java/org/apache/commons/beanutils2/LazyDynaMapTestCase.java
index ff90e917..2a4a02e5 100644
--- a/src/test/java/org/apache/commons/beanutils2/LazyDynaMapTestCase.java
+++ b/src/test/java/org/apache/commons/beanutils2/LazyDynaMapTestCase.java
@@ -164,7 +164,7 @@ public class LazyDynaMapTestCase extends TestCase {
         assertEquals("Check First Array length is correct", 
Integer.valueOf(index + 1), Integer.valueOf(((LinkedList<?>) 
dynaMap.get(testProperty)).size()));
 
         // Set a second indexed value, should automatically grow the 
LinkedList and set appropriate indexed value
-        index = index + 2;
+        index += 2;
         dynaMap.set(testProperty, index, testInteger1);
         assertEquals("Check Second Indexed Value is correct", testInteger1, 
dynaMap.get(testProperty, index));
         assertEquals("Check Second Array length is correct", 
Integer.valueOf(index + 1), Integer.valueOf(((LinkedList<?>) 
dynaMap.get(testProperty)).size()));
@@ -196,7 +196,7 @@ public class LazyDynaMapTestCase extends TestCase {
         assertEquals("Check Array length is correct", Integer.valueOf(index + 
1), Integer.valueOf(((String[]) dynaMap.get(testProperty)).length));
 
         // Set a second indexed value, should automatically grow the String[] 
and set appropriate indexed value
-        index = index + 2;
+        index += 2;
         dynaMap.set(testProperty, index, testString2);
         assertEquals("Check Second Indexed Value is correct(a)", testString2, 
dynaMap.get(testProperty, index));
         assertEquals("Check Second Indexed Value is correct(b)", testString2, 
((String[]) dynaMap.get(testProperty))[index]);
@@ -229,7 +229,7 @@ public class LazyDynaMapTestCase extends TestCase {
         assertEquals("Check Array length is correct", Integer.valueOf(index + 
1), Integer.valueOf(((int[]) dynaMap.get(testProperty)).length));
 
         // Set a second indexed value, should automatically grow the int[] and 
set appropriate indexed value
-        index = index + 2;
+        index += 2;
         dynaMap.set(testProperty, index, testInteger2);
         assertEquals("Check Second Indexed Value is correct(a)", testInteger2, 
dynaMap.get(testProperty, index));
         assertEquals("Check Second Indexed Value is correct(b)", testInteger2, 
Integer.valueOf(((int[]) dynaMap.get(testProperty))[index]));
@@ -257,7 +257,7 @@ public class LazyDynaMapTestCase extends TestCase {
         assertEquals("Check First Array length is correct", 
Integer.valueOf(index + 1), Integer.valueOf(((ArrayList<?>) 
dynaMap.get(testProperty)).size()));
 
         // Set a second indexed value, should automatically grow the ArrayList 
and set appropriate indexed value
-        index = index + 2;
+        index += 2;
         dynaMap.set(testProperty, index, testString1);
         assertEquals("Check Second Indexed Value is correct", testString1, 
dynaMap.get(testProperty, index));
         assertEquals("Check Second Array length is correct", 
Integer.valueOf(index + 1), Integer.valueOf(((ArrayList<?>) 
dynaMap.get(testProperty)).size()));

Reply via email to