From 2a24891ca7399bcb09121d7898c799fb97709911 Mon Sep 17 00:00:00 2001 From: Yohann Roussel Date: Wed, 17 Feb 2016 12:14:33 +0100 Subject: [PATCH] Suppress warnings of MultiDexLegacyAndException To clean build logs without disturbing the test. Cherry-pick of https://android-review.googlesource.com/#/c/202657/ Bug: 27155813 Change-Id: I4f2fa94729258573223aaa70a88744d2687f542e --- .../test-apps/MultiDexLegacyAndException/Android.mk | 2 ++ .../src/com/android/multidexlegacyandexception/Test.java | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk b/core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk index edeecb2f62c35..26f768b96f11a 100644 --- a/core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk +++ b/core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk @@ -29,6 +29,8 @@ LOCAL_PACKAGE_NAME := MultiDexLegacyAndException LOCAL_DEX_PREOPT := false +LOCAL_JAVACFLAGS := -nowarn + mainDexList:= \ $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.list diff --git a/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/Test.java b/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/Test.java index 5e931bc863758..8d065a43ac612 100644 --- a/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/Test.java +++ b/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/Test.java @@ -15,14 +15,13 @@ */ package com.android.multidexlegacyandexception; -import android.test.ActivityInstrumentationTestCase2; - /** * Run the tests with: adb shell am instrument -w com.android.multidexlegacyandexception/android.test.InstrumentationTestRunner */ -public class Test extends ActivityInstrumentationTestCase2 { +@SuppressWarnings("deprecation") +public class Test extends android.test.ActivityInstrumentationTestCase2 { public Test() { super(MainActivity.class); }