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 a8f192ff Use *=
a8f192ff is described below
commit a8f192ffb458ff0321ed375f0dd7a9cd718b0611
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jan 15 09:25:02 2024 -0500
Use *=
---
.../java/org/apache/commons/beanutils2/BeanificationTestCase.java | 8 +++-----
.../org/apache/commons/beanutils2/converters/MemoryTestCase.java | 2 +-
.../commons/beanutils2/locale/LocaleBeanificationTestCase.java | 6 +++---
3 files changed, 7 insertions(+), 9 deletions(-)
diff --git
a/src/test/java/org/apache/commons/beanutils2/BeanificationTestCase.java
b/src/test/java/org/apache/commons/beanutils2/BeanificationTestCase.java
index b100dc08..b7e3d8a9 100644
--- a/src/test/java/org/apache/commons/beanutils2/BeanificationTestCase.java
+++ b/src/test/java/org/apache/commons/beanutils2/BeanificationTestCase.java
@@ -407,12 +407,10 @@ public class BeanificationTestCase extends TestCase {
// create garbage:
@SuppressWarnings("unused")
final byte[] b = new byte[bytz];
- bytz = bytz * 2;
+ bytz *= 2;
}
}
- // ---- Auxillary classes
-
/** Tests whether class loaders and beans are released from memory by the
map used by beanutils */
public void testMemoryLeak2() throws Exception {
// tests when the map used by beanutils has the right behavior
@@ -457,7 +455,7 @@ public class BeanificationTestCase extends TestCase {
// create garbage:
@SuppressWarnings("unused")
final byte[] b = new byte[bytz];
- bytz = bytz * 2;
+ bytz *= 2;
}
}
@@ -491,7 +489,7 @@ public class BeanificationTestCase extends TestCase {
// create garbage:
@SuppressWarnings("unused")
final byte[] b = new byte[bytz];
- bytz = bytz * 2;
+ bytz *= 2;
}
}
}
diff --git
a/src/test/java/org/apache/commons/beanutils2/converters/MemoryTestCase.java
b/src/test/java/org/apache/commons/beanutils2/converters/MemoryTestCase.java
index 3563518b..3378502a 100644
--- a/src/test/java/org/apache/commons/beanutils2/converters/MemoryTestCase.java
+++ b/src/test/java/org/apache/commons/beanutils2/converters/MemoryTestCase.java
@@ -65,7 +65,7 @@ public class MemoryTestCase {
try {
@SuppressWarnings("unused")
final byte[] b = new byte[bytes];
- bytes = bytes * 2;
+ bytes *= 2;
} catch (final OutOfMemoryError e) {
// well that sure should have forced a garbage collection
// run to occur!
diff --git
a/src/test/java/org/apache/commons/beanutils2/locale/LocaleBeanificationTestCase.java
b/src/test/java/org/apache/commons/beanutils2/locale/LocaleBeanificationTestCase.java
index 1bf8447c..5b76178f 100644
---
a/src/test/java/org/apache/commons/beanutils2/locale/LocaleBeanificationTestCase.java
+++
b/src/test/java/org/apache/commons/beanutils2/locale/LocaleBeanificationTestCase.java
@@ -440,7 +440,7 @@ public class LocaleBeanificationTestCase {
}
// create garbage:
final byte[] b = new byte[bytz];
- bytz = bytz * 2;
+ bytz *= 2;
}
}
@@ -487,7 +487,7 @@ public class LocaleBeanificationTestCase {
}
// create garbage:
final byte[] b = new byte[bytz];
- bytz = bytz * 2;
+ bytz *= 2;
}
}
@@ -519,7 +519,7 @@ public class LocaleBeanificationTestCase {
}
// create garbage:
final byte[] b = new byte[bytz];
- bytz = bytz * 2;
+ bytz *= 2;
}
}
}