Skip to content

Commit 8af69a6

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Fix NotInvokedPrivateMethod: Add @SuppressLint for preallocateView (facebook#55439)
Summary: 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
1 parent 0bfe536 commit 8af69a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,7 @@ public void synchronouslyUpdateViewOnUIThread(final int reactTag, final Readable
820820
ReactMarkerConstants.FABRIC_UPDATE_UI_MAIN_THREAD_END, null, commitNumber);
821821
}
822822

823+
@SuppressLint("NotInvokedPrivateMethod")
823824
@SuppressWarnings("unused")
824825
@AnyThread
825826
@ThreadConfined(ANY)

0 commit comments

Comments
 (0)