Skip to content

Fix ClownyBooleanExpression: Add @SuppressLint annotation#55413

Open
mdvacca wants to merge 2 commits intofacebook:mainfrom
mdvacca:export-D91840560
Open

Fix ClownyBooleanExpression: Add @SuppressLint annotation#55413
mdvacca wants to merge 2 commits intofacebook:mainfrom
mdvacca:export-D91840560

Conversation

@mdvacca
Copy link
Contributor

@mdvacca mdvacca commented Feb 5, 2026

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

@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 5, 2026
@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 D91840560.

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
mdvacca added a commit to mdvacca/react-native that referenced this pull request Feb 7, 2026
…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
mdvacca added a commit to mdvacca/react-native that referenced this pull request Feb 7, 2026
…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
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