[MediaCCC] Use final when possible, ide refactorings
Refactorings on `throws` clause
This commit is contained in:
parent
af5b8b1915
commit
fcb9b6f855
2 changed files with 3 additions and 3 deletions
|
@ -72,8 +72,8 @@ public class MediaCCCConferenceExtractor extends ChannelExtractor {
|
||||||
@Nonnull
|
@Nonnull
|
||||||
@Override
|
@Override
|
||||||
public InfoItemsPage<StreamInfoItem> getInitialPage() {
|
public InfoItemsPage<StreamInfoItem> getInitialPage() {
|
||||||
StreamInfoItemsCollector collector = new StreamInfoItemsCollector(getServiceId());
|
final StreamInfoItemsCollector collector = new StreamInfoItemsCollector(getServiceId());
|
||||||
JsonArray events = conferenceData.getArray("events");
|
final JsonArray events = conferenceData.getArray("events");
|
||||||
for (int i = 0; i < events.size(); i++) {
|
for (int i = 0; i < events.size(); i++) {
|
||||||
collector.commit(new MediaCCCStreamInfoItemExtractor(events.getObject(i)));
|
collector.commit(new MediaCCCStreamInfoItemExtractor(events.getObject(i)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -283,7 +283,7 @@ public class MediaCCCStreamExtractor extends StreamExtractor {
|
||||||
|
|
||||||
@Nonnull
|
@Nonnull
|
||||||
@Override
|
@Override
|
||||||
public List<String> getTags() throws ParsingException {
|
public List<String> getTags() {
|
||||||
return Arrays.asList(data.getArray("tags").toArray(new String[0]));
|
return Arrays.asList(data.getArray("tags").toArray(new String[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue