blob: 6f86484f9ff85ed82cd39235f2573da3c01b151b [file] [log] [blame]
package test.pkg;
import android.app.Activity;
@SuppressWarnings("UnusedDeclaration")
public class WifiManagerLeak extends Activity {
public Object wifiManager() {
return <error descr="The WIFI_SERVICE must be looked up on the Application context or memory will leak on devices < Android N. Try changing `getSystemService` to `getApplicationContext().getSystemService`">getSystem<caret>Service(WIFI_SERVICE)</error>;
}
}