Skip to content

Commit 819afc8

Browse files
committed
Migrate test from deprecated code
1 parent d528fb5 commit 819afc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/apache/commons/io/input/ByteBufferCleanerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void testCleanEmpty() {
3939
@Test
4040
void testCleanFull() {
4141
final ByteBuffer buffer = ByteBuffer.allocateDirect(10);
42-
buffer.put(RandomUtils.insecure().nextBytes(10), 0, 10);
42+
buffer.put(RandomUtils.insecure().randomBytes(10), 0, 10);
4343
// There is no way verify that the buffer has been cleaned up, we are just verifying that
4444
// clean() doesn't blow up
4545
ByteBufferCleaner.clean(buffer);

0 commit comments

Comments
 (0)