未验证 提交 924b111c 编写于 作者: A Alan Russian 提交者: GitHub

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. :-)
上级 c903c217
......@@ -6,6 +6,7 @@ package io.flutter.app;
import android.app.Activity;
import android.app.Application;
import android.support.annotation.CallSuper;
import io.flutter.view.FlutterMain;
......@@ -15,6 +16,7 @@ import io.flutter.view.FlutterMain;
*/
public class FlutterApplication extends Application {
@Override
@CallSuper
public void onCreate() {
super.onCreate();
FlutterMain.startInitialization(this);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册