mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-04-26 04:33:13 +00:00
Improve code style in List.of()
This commit is contained in:
parent
a6cc13845a
commit
c5b970cca3
@ -10,8 +10,8 @@ import java.util.stream.Stream;
|
|||||||
public class PreferenceSearchConfiguration {
|
public class PreferenceSearchConfiguration {
|
||||||
private PreferenceSearchFunction searcher = new PreferenceFuzzySearchFunction();
|
private PreferenceSearchFunction searcher = new PreferenceFuzzySearchFunction();
|
||||||
|
|
||||||
private final List<String> parserIgnoreElements = List.of(PreferenceCategory.class
|
private final List<String> parserIgnoreElements = List.of(
|
||||||
.getSimpleName());
|
PreferenceCategory.class.getSimpleName());
|
||||||
private final List<String> parserContainerElements = List.of(
|
private final List<String> parserContainerElements = List.of(
|
||||||
PreferenceCategory.class.getSimpleName(),
|
PreferenceCategory.class.getSimpleName(),
|
||||||
PreferenceScreen.class.getSimpleName());
|
PreferenceScreen.class.getSimpleName());
|
||||||
|
@ -19,7 +19,8 @@ public final class TabsJsonHelper {
|
|||||||
private static final String JSON_TABS_ARRAY_KEY = "tabs";
|
private static final String JSON_TABS_ARRAY_KEY = "tabs";
|
||||||
|
|
||||||
private static final List<Tab> FALLBACK_INITIAL_TABS_LIST = List.of(
|
private static final List<Tab> FALLBACK_INITIAL_TABS_LIST = List.of(
|
||||||
Tab.Type.DEFAULT_KIOSK.getTab(), Tab.Type.SUBSCRIPTIONS.getTab(),
|
Tab.Type.DEFAULT_KIOSK.getTab(),
|
||||||
|
Tab.Type.SUBSCRIPTIONS.getTab(),
|
||||||
Tab.Type.BOOKMARKS.getTab());
|
Tab.Type.BOOKMARKS.getTab());
|
||||||
|
|
||||||
private TabsJsonHelper() { }
|
private TabsJsonHelper() { }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user