Skip to content

Commit

Permalink
'[skip ci] [RN][Android] Mark classes of package utils as @nullsafe
Browse files Browse the repository at this point in the history
Summary:
All these classes are NullSafe, let'\''s mark them as NullSafe(Local) to ensure lint detect errors in the future

changelog: [internal] internal

Differential Revision: D53393475

fbshipit-source-id: 502a8600e52119f61c59ad77aba7fcc99f80a2e8
  • Loading branch information
mdvacca committed Feb 4, 2024
1 parent 5ad172e commit d1ebc3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@

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;

/** Logging wrapper for FLog with LogBox support. */
@Nullsafe(Nullsafe.Mode.LOCAL)
public class RNLog {
public static final int MINIMUM_LEVEL_FOR_UI = Log.WARN;

Expand Down

0 comments on commit d1ebc3a

Please sign in to comment.