Skip to content

Commit b43f347

Browse files
committed
Make resetClientVersionAndKey public
1 parent 8d7b629 commit b43f347

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
import org.schabi.newpipe.extractor.utils.Parser;
1414
import org.schabi.newpipe.extractor.utils.Utils;
1515

16-
import javax.annotation.Nonnull;
17-
import javax.annotation.Nullable;
1816
import java.io.IOException;
1917
import java.io.UnsupportedEncodingException;
2018
import java.net.MalformedURLException;
@@ -24,7 +22,15 @@
2422
import java.time.OffsetDateTime;
2523
import java.time.ZoneOffset;
2624
import java.time.format.DateTimeParseException;
27-
import java.util.*;
25+
import java.util.ArrayList;
26+
import java.util.Collections;
27+
import java.util.HashMap;
28+
import java.util.List;
29+
import java.util.Map;
30+
import java.util.Objects;
31+
32+
import javax.annotation.Nonnull;
33+
import javax.annotation.Nullable;
2834

2935
import static org.schabi.newpipe.extractor.NewPipe.getDownloader;
3036
import static org.schabi.newpipe.extractor.utils.JsonUtils.EMPTY_STRING;
@@ -349,7 +355,7 @@ public static String getKey() throws IOException, ExtractionException {
349355
*
350356
* Quick-and-dirty solution to reset global state in between test classes.
351357
*/
352-
static void resetClientVersionAndKey() {
358+
public static void resetClientVersionAndKey() {
353359
clientVersion = null;
354360
key = null;
355361
}

0 commit comments

Comments
 (0)