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
This commit is contained in:
David Vacca
2020-01-29 21:06:55 -08:00
committed by Facebook Github Bot
parent 41f4efb364
commit de95457b8f
@@ -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) {