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


The following commit(s) were added to refs/heads/master by this push:
     new d0b2c0a0d Simplify literal assignment
d0b2c0a0d is described below

commit d0b2c0a0d7e3e96021158b1a1b490e845ec48f14
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jan 14 07:58:18 2026 -0500

    Simplify literal assignment
---
 src/test/java/org/apache/commons/lang3/ArrayFillTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/lang3/ArrayFillTest.java 
b/src/test/java/org/apache/commons/lang3/ArrayFillTest.java
index 7e0f53547..34cc4b9df 100644
--- a/src/test/java/org/apache/commons/lang3/ArrayFillTest.java
+++ b/src/test/java/org/apache/commons/lang3/ArrayFillTest.java
@@ -52,7 +52,7 @@ void testFillBooleanArrayNull() {
     @Test
     void testFillByteArray() {
         final byte[] array = new byte[3];
-        final byte val = (byte) 1;
+        final byte val = 1;
         final byte[] actual = ArrayFill.fill(array, val);
         assertSame(array, actual);
         for (final byte v : actual) {
@@ -63,7 +63,7 @@ void testFillByteArray() {
     @Test
     void testFillByteArrayNull() {
         final byte[] array = null;
-        final byte val = (byte) 1;
+        final byte val = 1;
         final byte[] actual = ArrayFill.fill(array, val);
         assertSame(array, actual);
     }

Reply via email to