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:01:27 -08:00 коммит произвёл Facebook Github Bot
Родитель 41f4efb364
Коммит de95457b8f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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) {