Skip to content

Commit fffbbee

Browse files
committed
[YouTube] Add missing Nonnull annotations in getCache method of YouTube DASH manifest creators
1 parent f7b1515 commit fffbbee

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubeOtfDashManifestCreator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public static String fromOtfStreamingUrl(
161161
/**
162162
* @return the cache of DASH manifests generated for OTF streams
163163
*/
164+
@Nonnull
164165
public static ManifestCreatorCache<String, String> getCache() {
165166
return OTF_STREAMS_CACHE;
166167
}

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubePostLiveStreamDvrDashManifestCreator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ public static String fromPostLiveStreamDvrStreamingUrl(
174174
/**
175175
* @return the cache of DASH manifests generated for post-live-DVR streams
176176
*/
177+
@Nonnull
177178
public static ManifestCreatorCache<String, String> getCache() {
178179
return POST_LIVE_DVR_STREAMS_CACHE;
179180
}

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/dashmanifestcreators/YoutubeProgressiveDashManifestCreator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ public static String fromProgressiveStreamingUrl(
114114
/**
115115
* @return the cache of DASH manifests generated for progressive streams
116116
*/
117+
@Nonnull
117118
public static ManifestCreatorCache<String, String> getCache() {
118119
return PROGRESSIVE_STREAMS_CACHE;
119120
}

0 commit comments

Comments
 (0)