mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Return a copy when explicitly asked for one (fixes a test).
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user