mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-30 00:02:06 +01:00
Passphrase.java do not use deprecated finalize()
This commit is contained in:
parent
3f2cdb8177
commit
6679c1bf3f
1 changed files with 0 additions and 11 deletions
|
@ -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.
|
* Return a copy of the underlying char array.
|
||||||
* A return value of {@code null} represents no password.
|
* A return value of {@code null} represents no password.
|
||||||
|
|
Loading…
Reference in a new issue