commit | 2a24891ca7399bcb09121d7898c799fb97709911 | [log] [tgz] |
---|---|---|
author | Yohann Roussel <yroussel@google.com> | Wed Feb 17 12:14:33 2016 +0100 |
committer | Aurimas Liutikas <aurimas@google.com> | Wed Feb 17 13:43:59 2016 -0800 |
tree | d010415d2b9ba0e6fb5a32f1d9e80ebb0bb1be2a | |
parent | 181d907d2416dcf780640f3c3fb13623acc187a1 [diff] |
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
diff --git a/core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk b/core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk index edeecb2..26f768b 100644 --- a/core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk +++ b/core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk
@@ -29,6 +29,8 @@ 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 5e931bc..8d065a4 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: <code>adb shell am instrument -w com.android.multidexlegacyandexception/android.test.InstrumentationTestRunner </code> */ -public class Test extends ActivityInstrumentationTestCase2<MainActivity> { +@SuppressWarnings("deprecation") +public class Test extends android.test.ActivityInstrumentationTestCase2<MainActivity> { public Test() { super(MainActivity.class); }