mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-11-29 08:55:48 +00:00
Ignore unchecked warning due to kotlin incompatibility
This commit is contained in:
1 parent
761bcdd064
commit
1d06f042e1
1 file changed
+4
-2
@@ -116,7 +116,7 @@ public class RecipientHelper {
|
||||
}
|
||||
if (forceRefresh) {
|
||||
try {
|
||||
final var aci = (ACI) handleResponseException(dependencies.getUsernameApi()
|
||||
@SuppressWarnings("unchecked") final var aci = (ACI) handleResponseException(dependencies.getUsernameApi()
|
||||
.getAciByUsername(finalUsername));
|
||||
return account.getRecipientStore().resolveRecipientTrusted(aci, finalUsername.getUsername());
|
||||
} catch (NonSuccessfulResponseCodeException e) {
|
||||
@@ -132,7 +132,9 @@ public class RecipientHelper {
|
||||
}
|
||||
return account.getRecipientStore().resolveRecipientByUsername(finalUsername.getUsername(), () -> {
|
||||
try {
|
||||
return (ACI) handleResponseException(dependencies.getUsernameApi().getAciByUsername(finalUsername));
|
||||
@SuppressWarnings("unchecked") final var result = (ACI) handleResponseException(dependencies.getUsernameApi()
|
||||
.getAciByUsername(finalUsername));
|
||||
return result;
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user