Fix NotInvokedPrivateMethod: Add @SuppressLint for preallocateView (#55439)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55439

Fixed NotInvokedPrivateMethod lint warning for preallocateView in FabricUIManager.java.

This method is called from JNI/C++ code, not from Java, so the lint warning is
a false positive. Added SuppressLint annotation to suppress the warning.

changelog: [internal] internal

Reviewed By: javache

Differential Revision: D91840733

fbshipit-source-id: 4c575bd4626ad908c2b2a69d51f58d0293966f2b
This commit is contained in:
David Vacca authored and meta-codesync[bot] committed 2026-02-08 15:29:11 -08:00
1 parent 38429b82f9
commit c63c74a51b
1 file changed
+1
@@ -820,6 +820,7 @@ public class FabricUIManager
ReactMarkerConstants.FABRIC_UPDATE_UI_MAIN_THREAD_END, null, commitNumber);
}
@SuppressLint("NotInvokedPrivateMethod")
@SuppressWarnings("unused")
@AnyThread
@ThreadConfined(ANY)