From af82edf9dc01e6bc2538ed41b2fdaf9c40922202 Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Sat, 26 Mar 2022 20:54:20 +0100 Subject: [PATCH] Fix checkstyle problems --- .../media_ccc/extractors/MediaCCCRecentKiosk.java | 6 +++--- .../extractors/MediaCCCRecentKioskExtractor.java | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCRecentKiosk.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCRecentKiosk.java index 9c42f7fb..27c1ce9a 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCRecentKiosk.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCRecentKiosk.java @@ -4,6 +4,7 @@ import com.grack.nanojson.JsonArray; import com.grack.nanojson.JsonObject; import com.grack.nanojson.JsonParser; import com.grack.nanojson.JsonParserException; + import org.schabi.newpipe.extractor.Page; import org.schabi.newpipe.extractor.StreamingService; import org.schabi.newpipe.extractor.downloader.Downloader; @@ -14,11 +15,10 @@ import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler; import org.schabi.newpipe.extractor.stream.StreamInfoItem; import org.schabi.newpipe.extractor.stream.StreamInfoItemsCollector; -import javax.annotation.Nonnull; import java.io.IOException; -import java.time.OffsetDateTime; import java.util.Comparator; -import java.util.function.Function; + +import javax.annotation.Nonnull; public class MediaCCCRecentKiosk extends KioskExtractor { diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCRecentKioskExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCRecentKioskExtractor.java index 363e91b6..1e18f8da 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCRecentKioskExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/media_ccc/extractors/MediaCCCRecentKioskExtractor.java @@ -1,16 +1,18 @@ package org.schabi.newpipe.extractor.services.media_ccc.extractors; import com.grack.nanojson.JsonObject; + import org.schabi.newpipe.extractor.exceptions.ParsingException; import org.schabi.newpipe.extractor.localization.DateWrapper; import org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCConferenceLinkHandlerFactory; import org.schabi.newpipe.extractor.stream.StreamInfoItemExtractor; import org.schabi.newpipe.extractor.stream.StreamType; -import javax.annotation.Nullable; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; +import javax.annotation.Nullable; + public class MediaCCCRecentKioskExtractor implements StreamInfoItemExtractor { private final JsonObject event; @@ -46,8 +48,8 @@ public class MediaCCCRecentKioskExtractor implements StreamInfoItemExtractor { @Override public long getDuration() { - // duration and length have the same value - // see https://github.com/voc/voctoweb/blob/master/app/views/public/shared/_event.json.jbuilder + // duration and length have the same value, see + // https://github.com/voc/voctoweb/blob/master/app/views/public/shared/_event.json.jbuilder return event.getInt("duration"); }