1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-25 01:20:34 +00:00

Migrate annotation to androidx

release build is failing without this on android studio 3.5.3
This commit is contained in:
Laurent Arnoud 2019-12-12 21:31:23 +01:00
parent c2b1d45fc4
commit ec1de9824a
No known key found for this signature in database
GPG Key ID: A79DAB2374F95DD5
2 changed files with 4 additions and 3 deletions

View File

@ -13,9 +13,10 @@ import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Nonnull;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import okhttp3.OkHttpClient;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
@ -102,7 +103,7 @@ public class DownloaderImpl extends Downloader {
}
@Override
public Response execute(@Nonnull Request request) throws IOException, ReCaptchaException {
public Response execute(@NonNull Request request) throws IOException, ReCaptchaException {
final String httpMethod = request.httpMethod();
final String url = request.url();
final Map<String, List<String>> headers = request.headers();

View File

@ -13,7 +13,7 @@ import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import javax.annotation.Nullable;
import androidx.annotation.Nullable;
/**
* @author kapodamy