mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix ClownyBooleanExpression: Add @SuppressLint annotation (#55413)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55413 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 fbshipit-source-id: b2d433488a0e2ec1b1174f735688db0e28ce4f28
This commit is contained in:
1 parent
1bfab3dfac
commit
38429b82f9
1 file changed
+2
+2
@@ -117,7 +117,9 @@ public class FabricUIManager
|
||||
|
||||
// The IS_DEVELOPMENT_ENVIRONMENT variable is used to log extra data when running fabric in a
|
||||
// development environment. DO NOT ENABLE THIS ON PRODUCTION OR YOU WILL BE FIRED!
|
||||
@SuppressLint("ClownyBooleanExpression")
|
||||
public static final boolean IS_DEVELOPMENT_ENVIRONMENT = false && ReactBuildConfig.DEBUG;
|
||||
|
||||
public @Nullable DevToolsReactPerfLogger mDevToolsReactPerfLogger;
|
||||
|
||||
private static final DevToolsReactPerfLogger.DevToolsReactPerfLoggerListener FABRIC_PERF_LOGGER =
|
||||
|
||||
Reference in new issue
Block a user