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 2025/07/20 22:12:12 UTC

(commons-io) 02/02: Merge some string literals

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

commit 3dd9995c577afe499cd01b30c89faed53c0e872a
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Jul 20 18:12:04 2025 -0400

    Merge some string literals
---
 src/test/java/org/apache/commons/io/FileUtilsTest.java                | 2 +-
 src/test/java/org/apache/commons/io/IOUtilsMultithreadedSkipTest.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/io/FileUtilsTest.java b/src/test/java/org/apache/commons/io/FileUtilsTest.java
index ece78bcd8..cf62cf2c1 100644
--- a/src/test/java/org/apache/commons/io/FileUtilsTest.java
+++ b/src/test/java/org/apache/commons/io/FileUtilsTest.java
@@ -3213,7 +3213,7 @@ void testWriteByteArrayToFile_WithOffsetAndLength_WithAppendOptionTrue_ShouldNot
         FileUtils.writeStringToFile(file, "This line was there before you...");
         final byte[] data = "SKIP_THIS_this is brand new data_AND_SKIP_THIS".getBytes(StandardCharsets.UTF_8);
         FileUtils.writeByteArrayToFile(file, data, 10, 22, true);
-        final String expected = "This line was there before you..." + "this is brand new data";
+        final String expected = "This line was there before you...this is brand new data";
         final String actual = FileUtils.readFileToString(file, StandardCharsets.UTF_8);
         assertEquals(expected, actual);
     }
diff --git a/src/test/java/org/apache/commons/io/IOUtilsMultithreadedSkipTest.java b/src/test/java/org/apache/commons/io/IOUtilsMultithreadedSkipTest.java
index 57870b32e..881ecec1d 100644
--- a/src/test/java/org/apache/commons/io/IOUtilsMultithreadedSkipTest.java
+++ b/src/test/java/org/apache/commons/io/IOUtilsMultithreadedSkipTest.java
@@ -110,7 +110,7 @@ private void testSkipFullyOnInflaterInputStream(final Supplier<byte[]> baSupplie
                                 final int c = is.read();
                                 assertEquals(expected[skipIndex], c, "failed on seed=" + seed + " iteration=" + iteration);
                             } catch (final EOFException e) {
-                                assertEquals(expected[skipIndex], is.read(), "failed on " + "seed=" + seed + " iteration=" + iteration);
+                                assertEquals(expected[skipIndex], is.read(), "failed on seed=" + seed + " iteration=" + iteration);
                             }
                         }
                     }