Fix missing symbols

This commit is contained in:
Andrea Cavalli 2023-05-19 01:22:36 +02:00
parent 62d1f82b19
commit df281862fe

View File

@ -1,7 +1,6 @@
package it.tdlight.client;
import it.tdlight.ClientFactory;
import java.util.Objects;
public class SimpleTelegramClientFactory implements AutoCloseable {
private final ClientFactory clientFactory;
@ -11,7 +10,11 @@ public class SimpleTelegramClientFactory implements AutoCloseable {
}
public SimpleTelegramClientFactory(ClientFactory clientFactory) {
this.clientFactory = Objects.requireNonNullElseGet(clientFactory, ClientFactory::acquireCommonClientFactory);
if (clientFactory == null) {
this.clientFactory = ClientFactory.acquireCommonClientFactory();
} else {
this.clientFactory = clientFactory;
}
}
public SimpleTelegramClientBuilder builder(TDLibSettings clientSettings) {