/* * Copyright (c) 2018-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import android.app.Activity; import android.accounts.AccountManager; import android.os.Bundle; // test is for recognizing Activity lifecycle methods class MyActivity extends Activity { AccountManager am; private void bad() { am.setUserData(null, null, null); } // overrides so no Bad suffixes @Override protected void onCreate (Bundle savedInstanceState) { bad(); } @Override public void onStart() { bad(); } @Override public void onRestart() { bad(); } @Override public void onResume() { bad(); } @Override public void onPause() { bad(); } @Override public void onStop() { bad(); } @Override public void onDestroy() { bad(); } }