Skip to content

Commit 5845533

Browse files
Minor refactor: remove public
1 parent b4f23a3 commit 5845533

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/testcases/ISoundcloudStreamExtractorTestCase.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import org.schabi.newpipe.extractor.ImmutableStyle;
55
import org.schabi.newpipe.extractor.StreamingService;
66
import org.schabi.newpipe.extractor.services.soundcloud.SoundcloudStreamExtractorTest;
7-
import org.schabi.newpipe.extractor.services.testcases.DefaultStreamExtractorTestCase;
87
import org.schabi.newpipe.extractor.stream.StreamType;
98
import org.schabi.newpipe.extractor.utils.Parser;
109
import org.schabi.newpipe.extractor.utils.Parser.RegexException;
@@ -29,7 +28,7 @@ public interface ISoundcloudStreamExtractorTestCase extends DefaultStreamExtract
2928
* Pattern for matching soundcloud stream URLs
3029
* Matches URLs of the form:
3130
* <pre>
32-
* https://soundcloud.com/user-904087338/nether#t=46
31+
* <a href="https://soundcloud.com/user-904087338/nether#t=46">...</a>
3332
* </pre>
3433
*/
3534
Pattern URL_PATTERN = Pattern.compile(
@@ -79,14 +78,14 @@ default String urlContains() {
7978
}
8079

8180
@Value.Derived
82-
public default StreamingService service() { return SoundCloud; }
81+
default StreamingService service() { return SoundCloud; }
8382

8483
@Value.Derived
8584
@Override
86-
public default StreamType streamType() { return StreamType.AUDIO_STREAM; }
85+
default StreamType streamType() { return StreamType.AUDIO_STREAM; }
8786

8887
@Override
89-
public default int timestamp() {
88+
default int timestamp() {
9089
try {
9190
return Integer.parseInt(getGroupFromUrl("timestamp"));
9291
}
@@ -97,15 +96,15 @@ public default int timestamp() {
9796
}
9897

9998
@Override
100-
public default long dislikeCountAtLeast() { return -1; } // default: soundcloud has no dislikes
99+
default long dislikeCountAtLeast() { return -1; } // default: soundcloud has no dislikes
101100

102101
@Override
103-
public default boolean hasVideoStreams() { return false; } // default: soundcloud has no video streams
102+
default boolean hasVideoStreams() { return false; } // default: soundcloud has no video streams
104103

105104
@Override
106-
public default boolean hasSubtitles() { return false; } // default: soundcloud has no subtitles
105+
default boolean hasSubtitles() { return false; } // default: soundcloud has no subtitles
107106

108-
public default boolean hasFrames() { return false; } // default: soundcloud has no frames
107+
default boolean hasFrames() { return false; } // default: soundcloud has no frames
109108

110-
public default int streamSegmentsCount() { return 0; }
109+
default int streamSegmentsCount() { return 0; }
111110
}

0 commit comments

Comments
 (0)