Skip to content

Commit ac500b6

Browse files
committed
Revert "Remove redundant initialization"
This reverts commit ea00238. It's not so bad to make it explicit which value we are initializing fields to; @ Stypox's fault for not noticing during review ;-)
1 parent 837705a commit ac500b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfo.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ private static void extractOptionalData(final StreamInfo streamInfo,
352352
private String uploaderUrl = "";
353353
@Nonnull
354354
private List<Image> uploaderAvatars = List.of();
355-
private boolean uploaderVerified;
355+
private boolean uploaderVerified = false;
356356
private long uploaderSubscriberCount = -1;
357357

358358
private String subChannelName = "";
@@ -368,19 +368,19 @@ private static void extractOptionalData(final StreamInfo streamInfo,
368368
private String hlsUrl = "";
369369
private List<InfoItem> relatedItems = List.of();
370370

371-
private long startPosition;
371+
private long startPosition = 0;
372372
private List<SubtitlesStream> subtitles = List.of();
373373

374374
private String host = "";
375375
private StreamExtractor.Privacy privacy;
376376
private String category = "";
377377
private String licence = "";
378378
private String supportInfo = "";
379-
private Locale language;
379+
private Locale language = null;
380380
private List<String> tags = List.of();
381381
private List<StreamSegment> streamSegments = List.of();
382382
private List<MetaInfo> metaInfo = List.of();
383-
private boolean shortFormContent;
383+
private boolean shortFormContent = false;
384384

385385
/**
386386
* Preview frames, e.g. for the storyboard / seekbar thumbnail preview

0 commit comments

Comments
 (0)