mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-09-19 05:58:57 +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);
|
account.setMultiDevice(devices.size() > 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public void migrateRegistrationPin() throws IOException {
|
public void migrateRegistrationPin() throws IOException {
|
||||||
var masterKey = account.getOrCreatePinMasterKey();
|
var masterKey = account.getOrCreatePinMasterKey();
|
||||||
|
|
||||||
@ -609,6 +610,7 @@ public class AccountHelper {
|
|||||||
handleResponseException(dependencies.getAccountApi().enableRegistrationLock(masterKey));
|
handleResponseException(dependencies.getAccountApi().enableRegistrationLock(masterKey));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public void setRegistrationPin(String pin) throws IOException {
|
public void setRegistrationPin(String pin) throws IOException {
|
||||||
var masterKey = account.getOrCreatePinMasterKey();
|
var masterKey = account.getOrCreatePinMasterKey();
|
||||||
|
|
||||||
@ -619,6 +621,7 @@ public class AccountHelper {
|
|||||||
updateAccountAttributes();
|
updateAccountAttributes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public void removeRegistrationPin() throws IOException {
|
public void removeRegistrationPin() throws IOException {
|
||||||
// Remove KBS Pin
|
// Remove KBS Pin
|
||||||
context.getPinHelper().removeRegistrationLockPin();
|
context.getPinHelper().removeRegistrationLockPin();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user