am a15ac2b0: am 4862e973: Merge "Annotate Application with @CallSuper" into mnc-dev

* commit 'a15ac2b06e0b6e3640764e5fd7a0dba091ff400b':
  Annotate Application with @CallSuper
This commit is contained in:
John Reck
2015-05-07 05:26:56 +00:00
committed by Android Git Automerger

View File

@@ -18,6 +18,7 @@ package android.app;
import java.util.ArrayList; import java.util.ArrayList;
import android.annotation.CallSuper;
import android.content.ComponentCallbacks; import android.content.ComponentCallbacks;
import android.content.ComponentCallbacks2; import android.content.ComponentCallbacks2;
import android.content.Context; import android.content.Context;
@@ -89,6 +90,7 @@ public class Application extends ContextWrapper implements ComponentCallbacks2 {
* service, or receiver in a process. * service, or receiver in a process.
* If you override this method, be sure to call super.onCreate(). * If you override this method, be sure to call super.onCreate().
*/ */
@CallSuper
public void onCreate() { public void onCreate() {
} }
@@ -98,9 +100,11 @@ public class Application extends ContextWrapper implements ComponentCallbacks2 {
* removed by simply killing them; no user code (including this callback) * removed by simply killing them; no user code (including this callback)
* is executed when doing so. * is executed when doing so.
*/ */
@CallSuper
public void onTerminate() { public void onTerminate() {
} }
@CallSuper
public void onConfigurationChanged(Configuration newConfig) { public void onConfigurationChanged(Configuration newConfig) {
Object[] callbacks = collectComponentCallbacks(); Object[] callbacks = collectComponentCallbacks();
if (callbacks != null) { if (callbacks != null) {
@@ -110,6 +114,7 @@ public class Application extends ContextWrapper implements ComponentCallbacks2 {
} }
} }
@CallSuper
public void onLowMemory() { public void onLowMemory() {
Object[] callbacks = collectComponentCallbacks(); Object[] callbacks = collectComponentCallbacks();
if (callbacks != null) { if (callbacks != null) {
@@ -119,6 +124,7 @@ public class Application extends ContextWrapper implements ComponentCallbacks2 {
} }
} }
@CallSuper
public void onTrimMemory(int level) { public void onTrimMemory(int level) {
Object[] callbacks = collectComponentCallbacks(); Object[] callbacks = collectComponentCallbacks();
if (callbacks != null) { if (callbacks != null) {