Skip to content

Commit 0bfe536

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Fix ClownyBooleanExpression: Add @SuppressLint annotation (facebook#55413)
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
1 parent 8b0d158 commit 0bfe536

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ public class FabricUIManager
117117

118118
// The IS_DEVELOPMENT_ENVIRONMENT variable is used to log extra data when running fabric in a
119119
// development environment. DO NOT ENABLE THIS ON PRODUCTION OR YOU WILL BE FIRED!
120+
@SuppressLint("ClownyBooleanExpression")
120121
public static final boolean IS_DEVELOPMENT_ENVIRONMENT = false && ReactBuildConfig.DEBUG;
122+
121123
public @Nullable DevToolsReactPerfLogger mDevToolsReactPerfLogger;
122124

123125
private static final DevToolsReactPerfLogger.DevToolsReactPerfLoggerListener FABRIC_PERF_LOGGER =

0 commit comments

Comments
 (0)