Merge "Fix errorprone warnings that should be errors" am: 5744d7c560
am: 7094507528
am: 778ef161bb
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2255054 Change-Id: I1f3cbce7d5de6e63477bc2da2ad115ec53b06472 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -398,6 +398,7 @@ public class ToggleFeaturePreferenceFragmentTest {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@SuppressWarnings("MissingSuperCall")
|
||||
@Override
|
||||
public void onDestroyView() {
|
||||
// do nothing
|
||||
|
@@ -489,6 +489,7 @@ public class ToggleScreenMagnificationPreferenceFragmentTest {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@SuppressWarnings("MissingSuperCall")
|
||||
@Override
|
||||
public void onDestroyView() {
|
||||
// do nothing
|
||||
|
@@ -50,6 +50,7 @@ public class AppFilterItemTest {
|
||||
assertThat(item).isEqualTo(item2);
|
||||
}
|
||||
|
||||
@SuppressWarnings("SelfComparison")
|
||||
@Test
|
||||
public void compare_sameContent_return0() {
|
||||
final AppFilterItem item = AppFilterRegistry.getInstance().get(FILTER_APPS_USAGE_ACCESS);
|
||||
|
@@ -141,10 +141,9 @@ public class BluetoothSampleRateDialogPreferenceControllerTest {
|
||||
|
||||
@Test
|
||||
public void getSelectableIndex_verifyList() {
|
||||
List<BluetoothCodecConfig> mCodecConfigs = new ArrayList() {{
|
||||
add(mCodecConfigAAC);
|
||||
add(mCodecConfigSBC);
|
||||
}};
|
||||
List<BluetoothCodecConfig> mCodecConfigs = List.of(
|
||||
mCodecConfigAAC,
|
||||
mCodecConfigSBC);
|
||||
mCodecStatus = new BluetoothCodecStatus.Builder()
|
||||
.setCodecConfig(mCodecConfigAAC)
|
||||
.setCodecsSelectableCapabilities(mCodecConfigs)
|
||||
|
@@ -43,16 +43,16 @@ public class ConfirmCredentialTest {
|
||||
|
||||
// Launch only one instance at a time.
|
||||
assertThat(LastTryDialog.show(
|
||||
fm, "title", mContext.getString(android.R.string.yes),
|
||||
fm, "title", mContext.getString(android.R.string.ok),
|
||||
android.R.string.ok, false)).isTrue();
|
||||
assertThat(LastTryDialog.show(
|
||||
fm, "title", mContext.getString(android.R.string.yes),
|
||||
fm, "title", mContext.getString(android.R.string.ok),
|
||||
android.R.string.ok, false)).isFalse();
|
||||
|
||||
// After cancelling, the dialog should be re-shown when asked for.
|
||||
LastTryDialog.hide(fm);
|
||||
assertThat(LastTryDialog.show(
|
||||
fm, "title", mContext.getString(android.R.string.yes),
|
||||
fm, "title", mContext.getString(android.R.string.ok),
|
||||
android.R.string.ok, false)).isTrue();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user