Skip to content

Fix NotInvokedPrivateMethod: Add @SuppressLint for preallocateView#55439

Open
mdvacca wants to merge 3 commits intofacebook:mainfrom
mdvacca:export-D91840733
Open

Fix NotInvokedPrivateMethod: Add @SuppressLint for preallocateView#55439
mdvacca wants to merge 3 commits intofacebook:mainfrom
mdvacca:export-D91840733

Conversation

@mdvacca
Copy link
Contributor

@mdvacca mdvacca commented Feb 6, 2026

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

@meta-codesync
Copy link

meta-codesync bot commented Feb 6, 2026

@mdvacca has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91840733.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 6, 2026
mdvacca added a commit to mdvacca/react-native that referenced this pull request Feb 6, 2026
…acebook#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
facebook#55412)

Summary:

Fixed DoNotStripAnnotationUsage lint error in FabricUIManagerBinding.kt.

The class has many members (external methods like initHybrid, installFabricUIManager, etc.)
that need to be kept, so DoNotStripAny is more appropriate than DoNotStrip which only
keeps the directly annotated element.

changelog: [internal] internal

Reviewed By: javache

Differential Revision: D91840163
…5413)

Summary:

Fixed ClownyBooleanExpression lint warning in FabricUIManager.java.

The expression `false && ReactBuildConfig.DEBUG` is intentionally used as a
development flag that can be easily toggled. The constant false ensures it's
disabled in production while making it clear how to enable it for development.

changelog: [internal] internal

Reviewed By: javache

Differential Revision: D91840560
…acebook#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
mdvacca added a commit to mdvacca/react-native that referenced this pull request Feb 7, 2026
…acebook#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants