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 819afc8d494741ff8bd05f36d43af813b6f6b04a
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Apr 6 13:47:55 2025 -0400

    Migrate test from deprecated code
---
 src/test/java/org/apache/commons/io/input/ByteBufferCleanerTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/test/java/org/apache/commons/io/input/ByteBufferCleanerTest.java 
b/src/test/java/org/apache/commons/io/input/ByteBufferCleanerTest.java
index 21f86b824..535f713a5 100644
--- a/src/test/java/org/apache/commons/io/input/ByteBufferCleanerTest.java
+++ b/src/test/java/org/apache/commons/io/input/ByteBufferCleanerTest.java
@@ -39,7 +39,7 @@ void testCleanEmpty() {
     @Test
     void testCleanFull() {
         final ByteBuffer buffer = ByteBuffer.allocateDirect(10);
-        buffer.put(RandomUtils.insecure().nextBytes(10), 0, 10);
+        buffer.put(RandomUtils.insecure().randomBytes(10), 0, 10);
         // There is no way verify that the buffer has been cleaned up, we are 
just verifying that
         // clean() doesn't blow up
         ByteBufferCleaner.clean(buffer);

Reply via email to