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/04/06 14:27:51 UTC
(commons-io) 02/04: Migrate test from deprecated code
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 e097fcf144ab65619df0148382cee7eed99698df
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Apr 6 10:27:00 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 c09d15543..21f86b824 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.nextBytes(10), 0, 10);
+ buffer.put(RandomUtils.insecure().nextBytes(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);