remove deprecated finalize method

This commit is contained in:
Craig Raw 2022-07-21 10:44:06 +02:00
parent f7fc559136
commit 40dab59337

View file

@ -73,18 +73,6 @@ public class SecureString implements CharSequence {
return "Secure:XXXXX";
}
/**
* Called by garbage collector.
* <p>
* {@inheritDoc}
*/
@SuppressWarnings("deprecation")
@Override
public void finalize() throws Throwable {
clear();
super.finalize();
}
/**
* Randomly pad the characters to not store the real character in memory.
*