diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java index 854bacec83c39b..d0cae313b072c7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java @@ -55,7 +55,7 @@ protected void enableViewRecycling() { return null; } if (!mRecyclableViews.containsKey(surfaceId)) { - mRecyclableViews.put(surfaceId, new Stack<>()); + mRecyclableViews.put(surfaceId, new Stack()); } return mRecyclableViews.get(surfaceId); } diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerRegistry.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerRegistry.java index fea9babb24087a..2fe412b4e437d7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerRegistry.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerRegistry.java @@ -131,7 +131,7 @@ ViewManager getViewManagerIfExists(String className) { } /** Send lifecycle signal to all ViewManagers that StopSurface has been called. */ - public void onSurfaceStopped(int surfaceId) { + public void onSurfaceStopped(final int surfaceId) { Runnable runnable = new Runnable() { @Override