fix(YouTube): Fix refactoring app startup exception

This commit is contained in:
LisoUseInAIKyrios
2025-06-23 13:15:43 +04:00
parent c1a8fd0766
commit 0dbd058099

View File

@@ -90,8 +90,6 @@ public final class LithoFilterPatch {
*/
private static final int LITHO_LAYOUT_THREAD_POOL_SIZE = 1;
private static final byte[] EMPTY_BYTE_ARRAY = new byte[0];
/**
* Placeholder for actual filters.
*/
@@ -104,6 +102,8 @@ public final class LithoFilterPatch {
private static final StringTrieSearch pathSearchTree = new StringTrieSearch();
private static final StringTrieSearch identifierSearchTree = new StringTrieSearch();
private static final byte[] EMPTY_BYTE_ARRAY = new byte[0];
/**
* Because litho filtering is multi-threaded and the buffer is passed in from a different injection point,
* the buffer is saved to a ThreadLocal so each calling thread does not interfere with other threads.