You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
904 B

/*
* 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.accounts.AccountManager;
import android.app.Activity;
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();
}
}