mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-12-05 01:10:15 +00:00
Fix nullable annotations
This commit is contained in:
@@ -36,6 +36,7 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class MediaCCCStreamExtractor extends StreamExtractor {
|
||||
private JsonObject data;
|
||||
@@ -45,13 +46,13 @@ public class MediaCCCStreamExtractor extends StreamExtractor {
|
||||
super(service, linkHandler);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Nullable
|
||||
@Override
|
||||
public String getTextualUploadDate() {
|
||||
return data.getString("release_date");
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Nullable
|
||||
@Override
|
||||
public DateWrapper getUploadDate() throws ParsingException {
|
||||
return DateWrapper.fromOffsetDateTime(getTextualUploadDate());
|
||||
|
||||
Reference in New Issue
Block a user