blob: 2fa2af819d66352e3c5fa7599db3ad94a32ec561 [file] [log] [blame]
package test.pkg;
import android.annotations.tools.SuppressLint;
import android.app.Activity;
import android.app.ApplicationErrorReport;
import android.app.ApplicationErrorReport.BatteryInfo;
public class SuppressTest4 extends Activity {
public void method() {
// These annotations within the method do not end up
// in the bytecode, so they have no effect. We need a
// lint annotation check to find these.
@SuppressLint("NewApi")
ApplicationErrorReport report = null;
@SuppressLint("NewApi")
BatteryInfo batteryInfo = report.batteryInfo;
}
}