Misc cleanup

This commit is contained in:
Oracle 2026-04-29 16:59:33 +02:00
parent 9b5fa56215
commit 6ed2ecd2e6
Signed by: Oracle
SSH key fingerprint: SHA256:x4/RtnjUyuHkdvmwNDsWSfcfF1V5PNr3OpriZqOvCX8
13 changed files with 70 additions and 565 deletions

View file

@ -108,7 +108,7 @@ class SecureMemoryTest {
buffer.zero();
assertDoesNotThrow(() -> buffer.zero(), "Zeroing should not throw");
assertDoesNotThrow(buffer::zero, "Zeroing should not throw");
}
@Test
@ -129,8 +129,8 @@ class SecureMemoryTest {
byte[] data = new byte[]{1, 2, 3};
SecureMemory.SecureBuffer buffer = SecureMemory.secureByteArray(data);
assertDoesNotThrow(() -> buffer.close(), "First close should not throw");
assertDoesNotThrow(() -> buffer.close(), "Second close should not throw");
assertDoesNotThrow(buffer::close, "First close should not throw");
assertDoesNotThrow(buffer::close, "Second close should not throw");
}
@Test