File tree Expand file tree Collapse file tree
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ public object Arguments {
139139 public fun fromJavaArgs (args : Any? ): WritableNativeArray = fromJavaArgs(args as Array <Any ?>)
140140
141141 @JvmStatic
142+ @Suppress(" PLATFORM_CLASS_MAPPED_TO_KOTLIN" )
142143 public fun fromJavaArgs (args : Array <Any ?>): WritableNativeArray {
143144 val arguments = WritableNativeArray ()
144145 for (i in args.indices) {
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ public void removeWindowFocusChangeListener(WindowFocusChangeListener listener)
270270 @ ThreadConfined (UI )
271271 public void onHostResume (@ Nullable Activity activity ) {
272272 mLifecycleState = LifecycleState .RESUMED ;
273- mCurrentActivity = new WeakReference (activity );
273+ mCurrentActivity = new WeakReference <> (activity );
274274 ReactMarker .logMarker (ReactMarkerConstants .ON_HOST_RESUME_START );
275275 for (LifecycleEventListener listener : mLifecycleEventListeners ) {
276276 try {
@@ -298,7 +298,7 @@ public void onUserLeaveHint(@Nullable Activity activity) {
298298 @ ThreadConfined (UI )
299299 public void onNewIntent (@ Nullable Activity activity , Intent intent ) {
300300 UiThreadUtil .assertOnUiThread ();
301- mCurrentActivity = new WeakReference (activity );
301+ mCurrentActivity = new WeakReference <> (activity );
302302 for (ActivityEventListener listener : mActivityEventListeners ) {
303303 try {
304304 listener .onNewIntent (intent );
You can’t perform that action at this time.
0 commit comments