Mark classes of package jstasks as @Nullsafe (#42852)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/42852

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: D53393137

fbshipit-source-id: 9ed2d2b28d3ad6ecb644eeb494ac2511e3b2397e
This commit is contained in:
David Vacca
2024-02-05 18:05:24 -08:00
committed by Facebook GitHub Bot
parent 645a69a757
commit 1d3da0a333
2 changed files with 6 additions and 0 deletions
@@ -7,6 +7,9 @@
package com.facebook.react.jstasks;
import com.facebook.infer.annotation.Nullsafe;
@Nullsafe(Nullsafe.Mode.LOCAL)
public class LinearCountingRetryPolicy implements HeadlessJsTaskRetryPolicy {
private final int mRetryAttempts;
@@ -7,6 +7,9 @@
package com.facebook.react.jstasks;
import com.facebook.infer.annotation.Nullsafe;
@Nullsafe(Nullsafe.Mode.LOCAL)
class NoRetryPolicy implements HeadlessJsTaskRetryPolicy {
public static final NoRetryPolicy INSTANCE = new NoRetryPolicy();