diff options
author | Yohann Roussel <yroussel@google.com> | 2016-02-17 12:14:33 +0100 |
---|---|---|
committer | Yohann Roussel <yroussel@google.com> | 2016-02-17 15:15:15 +0000 |
commit | d183f80687b1facd756a6f4324e48a323778a6cc (patch) | |
tree | 15eae65aaec5731a8ac31adef91f6219bc61d968 /core/tests/hosttests | |
parent | dcc79d83cb61a1996f627cf004a69eb019126070 (diff) |
Suppress warnings of MultiDexLegacyAndException
To clean build logs without disturbing the test.
Bug: 27155813
Change-Id: If80d7ad044dc9b4dfde5ded332e9ba566e536054
Diffstat (limited to 'core/tests/hosttests')
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 edeecb2f62c3..26f768b96f11 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 5e931bc86375..8d065a43ac61 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); } |