Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 924b111

Browse files
authored
Add CallSuper annotation to onCreate(). (#4789)
This provides improved code inspection, making it easier for developers to figure out what might be going wrong if they override this and don't call super, like I just did. :-)
1 parent c903c21 commit 924b111

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shell/platform/android/io/flutter/app/FlutterApplication.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import android.app.Activity;
88
import android.app.Application;
9+
import android.support.annotation.CallSuper;
910

1011
import io.flutter.view.FlutterMain;
1112

@@ -15,6 +16,7 @@
1516
*/
1617
public class FlutterApplication extends Application {
1718
@Override
19+
@CallSuper
1820
public void onCreate() {
1921
super.onCreate();
2022
FlutterMain.startInitialization(this);

0 commit comments

Comments
 (0)