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:
Родитель
41f4efb364
Коммит
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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче