From ec1de9824a3a1e2cf85a813470ae00decfdccabb Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Thu, 12 Dec 2019 21:31:23 +0100 Subject: [PATCH] Migrate annotation to androidx release build is failing without this on android studio 3.5.3 --- app/src/main/java/org/schabi/newpipe/DownloaderImpl.java | 5 +++-- .../java/org/schabi/newpipe/streams/OggFromWebMWriter.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/DownloaderImpl.java b/app/src/main/java/org/schabi/newpipe/DownloaderImpl.java index 5738cf61a..5dd9d1b74 100644 --- a/app/src/main/java/org/schabi/newpipe/DownloaderImpl.java +++ b/app/src/main/java/org/schabi/newpipe/DownloaderImpl.java @@ -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> headers = request.headers(); diff --git a/app/src/main/java/org/schabi/newpipe/streams/OggFromWebMWriter.java b/app/src/main/java/org/schabi/newpipe/streams/OggFromWebMWriter.java index 20e88c4c7..16bffea9a 100644 --- a/app/src/main/java/org/schabi/newpipe/streams/OggFromWebMWriter.java +++ b/app/src/main/java/org/schabi/newpipe/streams/OggFromWebMWriter.java @@ -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