mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
1 parent
38429b82f9
commit
c63c74a51b
1 file changed
+1
+1
@@ -820,6 +820,7 @@ public class FabricUIManager
|
||||
ReactMarkerConstants.FABRIC_UPDATE_UI_MAIN_THREAD_END, null, commitNumber);
|
||||
}
|
||||
|
||||
@SuppressLint("NotInvokedPrivateMethod")
|
||||
@SuppressWarnings("unused")
|
||||
@AnyThread
|
||||
@ThreadConfined(ANY)
|
||||
|
||||
Reference in new issue
Block a user