mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Mark classes of package utils as @Nullsafe (#42859)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42859 All these classes are NullSafe, let's mark them as NullSafe(Local) to ensure lint detect errors in the future changelog: [internal] internal Reviewed By: cortinico Differential Revision: D53393475 fbshipit-source-id: 442439c03e251d018f289ba4bb45dde9e6a0ab7f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e2fa62d6ad
commit
fe7b9e5199
+2
@@ -7,12 +7,14 @@
|
||||
|
||||
package com.facebook.react.util;
|
||||
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
import com.facebook.react.bridge.ReadableArray;
|
||||
import com.facebook.react.bridge.ReadableMap;
|
||||
import com.facebook.react.bridge.ReadableType;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public class JSStackTrace {
|
||||
|
||||
public static final String LINE_NUMBER_KEY = "lineNumber";
|
||||
|
||||
@@ -9,11 +9,13 @@ package com.facebook.react.util;
|
||||
|
||||
import android.util.Log;
|
||||
import com.facebook.common.logging.FLog;
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
import com.facebook.react.bridge.ReactContext;
|
||||
import com.facebook.react.common.ReactConstants;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/** Logging wrapper for FLog with LogBox support. */
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public class RNLog {
|
||||
public static final int MINIMUM_LEVEL_FOR_UI = Log.WARN;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user