Skip to content

Instantly share code, notes, and snippets.

@BramYeh
Last active July 7, 2017 03:53
Show Gist options
  • Save BramYeh/eb763d74c1908c593fb42cd2e5223199 to your computer and use it in GitHub Desktop.
Save BramYeh/eb763d74c1908c593fb42cd2e5223199 to your computer and use it in GitHub Desktop.
Sample of Optimized Aclass
Class Aclass {
private void methodToOptimize() {
Cclass cclass = new Cclass();
new AsyncTask<Cclass, Void, Void>() {
@Override
protected Void doInBackground(Cclass... params) {
return null;
}
}.execute(new Cclass[]{cclass});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment