From ecf4232ce311c4d6cb690c626634ba54200e7528 Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Tue, 15 Jun 2021 21:58:00 +0200 Subject: [PATCH] Using ``Collections.emptyList()`` --- .../services/youtube/extractors/YoutubeStreamExtractor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java index a5b809370..8cc60b24d 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java @@ -1050,12 +1050,12 @@ public class YoutubeStreamExtractor extends StreamExtractor { } if (storyboardsRenderer == null) { - return new ArrayList<>(); + return Collections.emptyList(); } final String storyboardsRendererSpec = storyboardsRenderer.getString("spec"); if (storyboardsRendererSpec == null) { - return new ArrayList<>(); + return Collections.emptyList(); } final String[] spec = storyboardsRendererSpec.split("\\|");