Update dependencies

This commit is contained in:
AsamK 2019-03-23 18:32:31 +01:00
parent 6d5cfa32e2
commit 6f7350d031
4 changed files with 10 additions and 8 deletions

View file

@ -1,6 +1,5 @@
package org.asamk.signal.manager;
import org.apache.http.util.TextUtils;
import org.asamk.signal.AttachmentInvalidException;
import org.signal.libsignal.metadata.certificate.CertificateValidator;
import org.whispersystems.libsignal.IdentityKey;
@ -25,6 +24,8 @@ import java.net.URLEncoder;
import java.nio.file.Files;
import java.util.*;
import static org.whispersystems.signalservice.internal.util.Util.isEmpty;
class Utils {
static List<SignalServiceAttachment> getSignalServiceAttachments(List<String> attachments) throws AttachmentInvalidException {
@ -100,7 +101,7 @@ class Utils {
String deviceIdentifier = query.get("uuid");
String publicKeyEncoded = query.get("pub_key");
if (TextUtils.isEmpty(deviceIdentifier) || TextUtils.isEmpty(publicKeyEncoded)) {
if (isEmpty(deviceIdentifier) || isEmpty(publicKeyEncoded)) {
throw new RuntimeException("Invalid device link uri");
}