summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-05-06 22:09:59 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-06 22:09:59 +0000
commit4862e973a643a0f66da50ce416258c62d7c55e2d (patch)
treebbc3800488c7d8881ec29f7440900e52e3c29be8
parente184a6b9ac6d2f871bc094665bef5efa7f2292e5 (diff)
parentadd70268b193cd83e4ea2b35fabca2d4f5808828 (diff)
downloadframeworks_base-4862e973a643a0f66da50ce416258c62d7c55e2d.zip
frameworks_base-4862e973a643a0f66da50ce416258c62d7c55e2d.tar.gz
frameworks_base-4862e973a643a0f66da50ce416258c62d7c55e2d.tar.bz2
Merge "Annotate Application with @CallSuper" into mnc-dev
-rw-r--r--core/java/android/app/Application.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/app/Application.java b/core/java/android/app/Application.java
index 75e4bab..1174387 100644
--- a/core/java/android/app/Application.java
+++ b/core/java/android/app/Application.java
@@ -18,6 +18,7 @@ package android.app;
import java.util.ArrayList;
+import android.annotation.CallSuper;
import android.content.ComponentCallbacks;
import android.content.ComponentCallbacks2;
import android.content.Context;
@@ -89,6 +90,7 @@ public class Application extends ContextWrapper implements ComponentCallbacks2 {
* service, or receiver in a process.
* If you override this method, be sure to call super.onCreate().
*/
+ @CallSuper
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)
* is executed when doing so.
*/
+ @CallSuper
public void onTerminate() {
}
+ @CallSuper
public void onConfigurationChanged(Configuration newConfig) {
Object[] callbacks = collectComponentCallbacks();
if (callbacks != null) {
@@ -110,6 +114,7 @@ public class Application extends ContextWrapper implements ComponentCallbacks2 {
}
}
+ @CallSuper
public void onLowMemory() {
Object[] callbacks = collectComponentCallbacks();
if (callbacks != null) {
@@ -119,6 +124,7 @@ public class Application extends ContextWrapper implements ComponentCallbacks2 {
}
}
+ @CallSuper
public void onTrimMemory(int level) {
Object[] callbacks = collectComponentCallbacks();
if (callbacks != null) {