[MediaCCC] Use final when possible, ide refactorings

Refactorings on `throws` clause
This commit is contained in:
Stypox 2020-04-11 17:17:14 +02:00
parent af5b8b1915
commit fcb9b6f855
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
2 changed files with 3 additions and 3 deletions

View File

@ -72,8 +72,8 @@ public class MediaCCCConferenceExtractor extends ChannelExtractor {
@Nonnull
@Override
public InfoItemsPage<StreamInfoItem> getInitialPage() {
StreamInfoItemsCollector collector = new StreamInfoItemsCollector(getServiceId());
JsonArray events = conferenceData.getArray("events");
final StreamInfoItemsCollector collector = new StreamInfoItemsCollector(getServiceId());
final JsonArray events = conferenceData.getArray("events");
for (int i = 0; i < events.size(); i++) {
collector.commit(new MediaCCCStreamInfoItemExtractor(events.getObject(i)));
}

View File

@ -283,7 +283,7 @@ public class MediaCCCStreamExtractor extends StreamExtractor {
@Nonnull
@Override
public List<String> getTags() throws ParsingException {
public List<String> getTags() {
return Arrays.asList(data.getArray("tags").toArray(new String[0]));
}