From de95457b8fce492aad3f02e7260ac6818e5050a1 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 29 Jan 2020 21:01:27 -0800 Subject: [PATCH] Annotate with @Nullable parameters of the UIManagerModule class Summary: This diff annotates with Nullable parameters of the UIManagerModule class. changeLog: [internal] Reviewed By: JoshuaGross Differential Revision: D19624422 fbshipit-source-id: 0d6a095d0613c71087de004464974a7f5e755c34 --- .../java/com/facebook/react/uimanager/UIManagerModule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java index 2f802d2222..ead772e484 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java @@ -308,7 +308,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule } @ReactMethod(isBlockingSynchronousMethod = true) - public @Nullable WritableMap getConstantsForViewManager(final String viewManagerName) { + public @Nullable WritableMap getConstantsForViewManager(@Nullable String viewManagerName) { if (mViewManagerConstantsCache != null && mViewManagerConstantsCache.containsKey(viewManagerName)) { WritableMap constants = mViewManagerConstantsCache.get(viewManagerName); @@ -322,7 +322,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule } } - private @Nullable WritableMap computeConstantsForViewManager(final String viewManagerName) { + private @Nullable WritableMap computeConstantsForViewManager(@Nullable String viewManagerName) { ViewManager targetView = viewManagerName != null ? mUIImplementation.resolveViewManager(viewManagerName) : null; if (targetView == null) {