mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Refactor receive api
This commit is contained in:
parent
b615a4b04d
commit
9075cc1a30
36 changed files with 1510 additions and 970 deletions
|
@ -10,6 +10,7 @@ import org.whispersystems.signalservice.api.push.SignalServiceAddress;
|
|||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Optional;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class Util {
|
||||
|
@ -17,8 +18,8 @@ public class Util {
|
|||
private Util() {
|
||||
}
|
||||
|
||||
public static String getStringIfNotBlank(org.whispersystems.libsignal.util.guava.Optional<String> value) {
|
||||
var string = value.orNull();
|
||||
public static String getStringIfNotBlank(Optional<String> value) {
|
||||
var string = value.orElse(null);
|
||||
if (string == null || string.isBlank()) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue