OSDN Git Service

Suppress warnings of MultiDexLegacyAndException
authorYohann Roussel <yroussel@google.com>
Wed, 17 Feb 2016 11:14:33 +0000 (12:14 +0100)
committerYohann Roussel <yroussel@google.com>
Wed, 17 Feb 2016 15:15:15 +0000 (15:15 +0000)
To clean build logs without disturbing the test.

Bug: 27155813

Change-Id: If80d7ad044dc9b4dfde5ded332e9ba566e536054

core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk
core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/Test.java

index edeecb2..26f768b 100644 (file)
@@ -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
 
index 5e931bc..8d065a4 100644 (file)
  */
 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);
     }