Skip to content
Snippets Groups Projects
Commit 851a44eb authored by akwizgran's avatar akwizgran
Browse files

Return a copy when explicitly asked for one (fixes a test).

parent e5c8a141
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ class ErasableKeyImpl implements ErasableKey {
}
public ErasableKey copy() {
return new ErasableKeyImpl(getEncoded(), algorithm);
return new ErasableKeyImpl(key.clone(), algorithm);
}
public synchronized void erase() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment