Skip to content

Commit

Permalink
Mark classes of package utils as @nullsafe (facebook#42859)
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

Reviewed By: cortinico

Differential Revision: D53393475
  • Loading branch information
mdvacca authored and facebook-github-bot committed Feb 7, 2024
1 parent 2a8a75f commit 3af31d1
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,11 +9,13 @@

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;

Expand Down

0 comments on commit 3af31d1

Please sign in to comment.