Skip to content

Commit

Permalink
Add CallSuper annotation to onCreate(). (flutter#4789)
Browse files Browse the repository at this point in the history
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. :-)
  • Loading branch information
alanrussian authored Mar 31, 2018
1 parent c903c21 commit 924b111
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/platform/android/io/flutter/app/FlutterApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import android.app.Activity;
import android.app.Application;
import android.support.annotation.CallSuper;

import io.flutter.view.FlutterMain;

Expand All @@ -15,6 +16,7 @@
*/
public class FlutterApplication extends Application {
@Override
@CallSuper
public void onCreate() {
super.onCreate();
FlutterMain.startInitialization(this);
Expand Down

0 comments on commit 924b111

Please sign in to comment.