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


The following commit(s) were added to refs/heads/master by this push:
     new a6652024d Fix benchmarks
a6652024d is described below

commit a6652024d2d3ee4efd32c96ba9ba862bbe28a1ea
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Dec 5 08:03:43 2025 -0500

    Fix benchmarks
---
 .../commons/io/jmh/IOUtilsContentEqualsInputStreamsBenchmark.java | 8 ++++----
 .../commons/io/jmh/IOUtilsContentEqualsReadersBenchmark.java      | 6 +++---
 .../apache/commons/io/jmh/PathUtilsContentEqualsBenchmark.java    | 4 ++--
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsInputStreamsBenchmark.java
 
b/src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsInputStreamsBenchmark.java
index 028f55a9f..68009ab3b 100644
--- 
a/src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsInputStreamsBenchmark.java
+++ 
b/src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsInputStreamsBenchmark.java
@@ -234,7 +234,7 @@ public boolean[] testFileRelease_2_8_0() throws IOException 
{
     }
 
     @Benchmark
-    void testStringCurrent(final Blackhole blackhole) throws IOException {
+    public void testStringCurrent(final Blackhole blackhole) throws 
IOException {
         for (int i = 0; i < 5; i++) {
             for (int j = 0; j < 5; j++) {
                 try (InputStream inputReader1 = 
IOUtils.toInputStream(STRINGS[i], DEFAULT_CHARSET);
@@ -246,7 +246,7 @@ void testStringCurrent(final Blackhole blackhole) throws 
IOException {
     }
 
     @Benchmark
-    void testStringFileChannels(final Blackhole blackhole) throws IOException {
+    public void testStringFileChannels(final Blackhole blackhole) throws 
IOException {
         for (int i = 0; i < 5; i++) {
             for (int j = 0; j < 5; j++) {
                 try (InputStream input1 = IOUtils.toInputStream(STRINGS[i], 
DEFAULT_CHARSET);
@@ -258,7 +258,7 @@ void testStringFileChannels(final Blackhole blackhole) 
throws IOException {
     }
 
     @Benchmark
-    void testStringPr118(final Blackhole blackhole) throws IOException {
+    public void testStringPr118(final Blackhole blackhole) throws IOException {
         for (int i = 0; i < 5; i++) {
             for (int j = 0; j < 5; j++) {
                 try (InputStream input1 = IOUtils.toInputStream(STRINGS[i], 
DEFAULT_CHARSET);
@@ -270,7 +270,7 @@ void testStringPr118(final Blackhole blackhole) throws 
IOException {
     }
 
     @Benchmark
-    void testStringRelease_2_8_0(final Blackhole blackhole) throws IOException 
{
+    public void testStringRelease_2_8_0(final Blackhole blackhole) throws 
IOException {
         for (int i = 0; i < 5; i++) {
             for (int j = 0; j < 5; j++) {
                 try (InputStream input1 = IOUtils.toInputStream(STRINGS[i], 
DEFAULT_CHARSET);
diff --git 
a/src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsReadersBenchmark.java
 
b/src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsReadersBenchmark.java
index d7282d8ea..394989d4f 100644
--- 
a/src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsReadersBenchmark.java
+++ 
b/src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsReadersBenchmark.java
@@ -203,7 +203,7 @@ public boolean[] testFileRelease_2_8_0() throws IOException 
{
     }
 
     @Benchmark
-    void testStringCurrent(final Blackhole blackhole) throws IOException {
+    public void testStringCurrent(final Blackhole blackhole) throws 
IOException {
         for (int i = 0; i < 5; i++) {
             for (int j = 0; j < 5; j++) {
                 try (StringReader input1 = new StringReader(STRINGS[i]);
@@ -215,7 +215,7 @@ void testStringCurrent(final Blackhole blackhole) throws 
IOException {
     }
 
     @Benchmark
-    void testStringPr118(final Blackhole blackhole) throws IOException {
+    public void testStringPr118(final Blackhole blackhole) throws IOException {
         for (int i = 0; i < 5; i++) {
             for (int j = 0; j < 5; j++) {
                 try (StringReader input1 = new StringReader(STRINGS[i]);
@@ -227,7 +227,7 @@ void testStringPr118(final Blackhole blackhole) throws 
IOException {
     }
 
     @Benchmark
-    void testStringRelease_2_8_0(final Blackhole blackhole) throws IOException 
{
+    public void testStringRelease_2_8_0(final Blackhole blackhole) throws 
IOException {
         for (int i = 0; i < 5; i++) {
             for (int j = 0; j < 5; j++) {
                 try (StringReader input1 = new StringReader(STRINGS[i]);
diff --git 
a/src/test/java/org/apache/commons/io/jmh/PathUtilsContentEqualsBenchmark.java 
b/src/test/java/org/apache/commons/io/jmh/PathUtilsContentEqualsBenchmark.java
index 2fd9688cc..929135256 100644
--- 
a/src/test/java/org/apache/commons/io/jmh/PathUtilsContentEqualsBenchmark.java
+++ 
b/src/test/java/org/apache/commons/io/jmh/PathUtilsContentEqualsBenchmark.java
@@ -92,7 +92,7 @@ public boolean[] testCurrent_fileContentEquals() throws 
IOException {
     }
 
     @Benchmark
-    void testCurrent_fileContentEquals_Blackhole(final Blackhole blackhole) 
throws IOException {
+    public void testCurrent_fileContentEquals_Blackhole(final Blackhole 
blackhole) throws IOException {
         for (int i = 0; i < 5; i++) {
             for (int j = 0; j < 5; j++) {
                 blackhole.consume(PathUtils.fileContentEquals(bigFile1, 
bigFile2));
@@ -108,7 +108,7 @@ public boolean[] testProposal_contentEquals() throws 
IOException {
     }
 
     @Benchmark
-    void testProposal_contentEquals_Blackhole(final Blackhole blackhole) 
throws IOException {
+    public void testProposal_contentEquals_Blackhole(final Blackhole 
blackhole) throws IOException {
         for (int i = 0; i < 5; i++) {
             for (int j = 0; j < 5; j++) {
                 blackhole.consume(newFileContentEquals(bigFile1, bigFile2));

Reply via email to