mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
645a69a757
commit
1d3da0a333
+3
@@ -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;
|
||||
|
||||
+3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user