mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Mark classes of packages packagerconnection as @Nullsafe (#42854)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42854 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: D53393141 fbshipit-source-id: a83840a904ba06f4dfbded2480c19d1457566f4c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1d3da0a333
commit
a1b9ca3f0e
+2
@@ -12,6 +12,7 @@ import android.os.Looper;
|
||||
import android.util.Base64;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.facebook.common.logging.FLog;
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
@@ -20,6 +21,7 @@ import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import org.json.JSONObject;
|
||||
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public class FileIoHandler implements Runnable {
|
||||
private static final String TAG = JSPackagerClient.class.getSimpleName();
|
||||
private static final long FILE_TTL = 30 * 1000;
|
||||
|
||||
+2
@@ -9,7 +9,9 @@ package com.facebook.react.packagerconnection;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import com.facebook.common.logging.FLog;
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public abstract class NotificationOnlyHandler implements RequestHandler {
|
||||
private static final String TAG = JSPackagerClient.class.getSimpleName();
|
||||
|
||||
|
||||
+2
@@ -14,8 +14,10 @@ import android.text.TextUtils;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.facebook.common.logging.FLog;
|
||||
import com.facebook.infer.annotation.Assertions;
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
import com.facebook.react.modules.systeminfo.AndroidInfoHelpers;
|
||||
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public class PackagerConnectionSettings {
|
||||
private static final String TAG = PackagerConnectionSettings.class.getSimpleName();
|
||||
private static final String PREFS_DEBUG_SERVER_HOST_KEY = "debug_http_host";
|
||||
|
||||
+2
@@ -9,7 +9,9 @@ package com.facebook.react.packagerconnection;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import com.facebook.common.logging.FLog;
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public abstract class RequestOnlyHandler implements RequestHandler {
|
||||
private static final String TAG = JSPackagerClient.class.getSimpleName();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user