mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Mark classes of package uimanager as @Nullsafe (#43156)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43156 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: javache Differential Revision: D54027185 fbshipit-source-id: f3c337def2d42cf1f6fed2e2eb4938a84a51f8d4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ed3eacb8b9
commit
c77c13ab7c
+2
@@ -8,6 +8,7 @@
|
||||
package com.facebook.react.uimanager;
|
||||
|
||||
import android.view.Choreographer;
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
import com.facebook.react.bridge.JSExceptionHandler;
|
||||
import com.facebook.react.bridge.ReactContext;
|
||||
|
||||
@@ -15,6 +16,7 @@ import com.facebook.react.bridge.ReactContext;
|
||||
* Abstract base for a Choreographer FrameCallback that should have any RuntimeExceptions it throws
|
||||
* handled by the {@link JSExceptionHandler} registered if the app is in dev mode.
|
||||
*/
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public abstract class GuardedFrameCallback implements Choreographer.FrameCallback {
|
||||
|
||||
private final ReactContext mReactContext;
|
||||
|
||||
+2
@@ -9,9 +9,11 @@ package com.facebook.react.uimanager;
|
||||
|
||||
import android.view.View;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
import com.facebook.react.bridge.JSApplicationCausedNativeException;
|
||||
|
||||
/** An exception caused by JS requesting the UI manager to perform an illegal view operation. */
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public class IllegalViewOperationException extends JSApplicationCausedNativeException {
|
||||
|
||||
@Nullable private View mView;
|
||||
|
||||
Reference in New Issue
Block a user