1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-18 09:34:51 +02:00

Passphrase.java do not use deprecated finalize()

This commit is contained in:
Paul Schaub 2020-01-09 19:06:48 +01:00
parent 3f2cdb8177
commit 6679c1bf3f
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -46,17 +46,6 @@ public class Passphrase {
}
}
/**
* Call {@link #clear()} to make sure the memory is overwritten.
*
* @throws Throwable bad things might happen in {@link Object#finalize()}.
*/
@Override
protected void finalize() throws Throwable {
clear();
super.finalize();
}
/**
* Return a copy of the underlying char array.
* A return value of {@code null} represents no password.