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