Merge "Remove redundant cast" into main

This commit is contained in:
Fan Wu
2024-02-02 06:43:24 +00:00
committed by Android (Google) Code Review

View File

@@ -677,7 +677,7 @@ public class DashboardFeatureProviderImplTest {
preference.performClick(); preference.performClick();
Intent nextStartedActivity = Intent nextStartedActivity =
Shadows.shadowOf((Application) mApplication).peekNextStartedActivity(); Shadows.shadowOf(mApplication).peekNextStartedActivity();
assertThat(nextStartedActivity).isNotNull(); assertThat(nextStartedActivity).isNotNull();
assertThat(nextStartedActivity.getAction()).isEqualTo("test"); assertThat(nextStartedActivity.getAction()).isEqualTo("test");
} }
@@ -704,7 +704,7 @@ public class DashboardFeatureProviderImplTest {
mActivity.getSupportFragmentManager().findFragmentByTag("select_profile"); mActivity.getSupportFragmentManager().findFragmentByTag("select_profile");
assertThat(dialogFragment).isNotNull(); assertThat(dialogFragment).isNotNull();
Intent nextStartedActivity = Intent nextStartedActivity =
Shadows.shadowOf((Application) mApplication).peekNextStartedActivity(); Shadows.shadowOf(mApplication).peekNextStartedActivity();
assertThat(nextStartedActivity).isNull(); assertThat(nextStartedActivity).isNull();
} }