From fffbbee7f37127f14ffc011dad5903555f510881 Mon Sep 17 00:00:00 2001 From: TiA4f8R <74829229+TiA4f8R@users.noreply.github.com> Date: Sat, 14 May 2022 12:30:53 +0200 Subject: [PATCH] [YouTube] Add missing Nonnull annotations in getCache method of YouTube DASH manifest creators --- .../dashmanifestcreators/YoutubeOtfDashManifestCreator.java | 1 + .../YoutubePostLiveStreamDvrDashManifestCreator.java | 1 + .../YoutubeProgressiveDashManifestCreator.java | 1 + 3 files changed, 3 insertions(+) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubeOtfDashManifestCreator.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubeOtfDashManifestCreator.java index 375fd7421..f76d22356 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubeOtfDashManifestCreator.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubeOtfDashManifestCreator.java @@ -161,6 +161,7 @@ public final class YoutubeOtfDashManifestCreator { /** * @return the cache of DASH manifests generated for OTF streams */ + @Nonnull public static ManifestCreatorCache getCache() { return OTF_STREAMS_CACHE; } diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubePostLiveStreamDvrDashManifestCreator.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubePostLiveStreamDvrDashManifestCreator.java index 21a21d2c6..07ee3b887 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubePostLiveStreamDvrDashManifestCreator.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubePostLiveStreamDvrDashManifestCreator.java @@ -174,6 +174,7 @@ public final class YoutubePostLiveStreamDvrDashManifestCreator { /** * @return the cache of DASH manifests generated for post-live-DVR streams */ + @Nonnull public static ManifestCreatorCache getCache() { return POST_LIVE_DVR_STREAMS_CACHE; } diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubeProgressiveDashManifestCreator.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubeProgressiveDashManifestCreator.java index 0a8ed4533..2b4ff86ae 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubeProgressiveDashManifestCreator.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubeProgressiveDashManifestCreator.java @@ -114,6 +114,7 @@ public final class YoutubeProgressiveDashManifestCreator { /** * @return the cache of DASH manifests generated for progressive streams */ + @Nonnull public static ManifestCreatorCache getCache() { return PROGRESSIVE_STREAMS_CACHE; }