mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-09-12 04:54:11 +00:00
Suppress unchecked warnings
This commit is contained in:
parent
6b7b94fe1f
commit
f9dbf6bfff
@ -602,6 +602,7 @@ public class AccountHelper {
|
||||
account.setMultiDevice(devices.size() > 1);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public void migrateRegistrationPin() throws IOException {
|
||||
var masterKey = account.getOrCreatePinMasterKey();
|
||||
|
||||
@ -609,6 +610,7 @@ public class AccountHelper {
|
||||
handleResponseException(dependencies.getAccountApi().enableRegistrationLock(masterKey));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setRegistrationPin(String pin) throws IOException {
|
||||
var masterKey = account.getOrCreatePinMasterKey();
|
||||
|
||||
@ -619,6 +621,7 @@ public class AccountHelper {
|
||||
updateAccountAttributes();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public void removeRegistrationPin() throws IOException {
|
||||
// Remove KBS Pin
|
||||
context.getPinHelper().removeRegistrationLockPin();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user