From f102b005aa2e89027a368613bd873a0bbb43a783 Mon Sep 17 00:00:00 2001 From: Keerti Parthasarathy Date: Wed, 8 Aug 2018 11:56:51 -0700 Subject: [PATCH] Annotate deprecated methods with @Deprecated --- shell/platform/android/io/flutter/view/FlutterNativeView.java | 1 + shell/platform/android/io/flutter/view/FlutterView.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/shell/platform/android/io/flutter/view/FlutterNativeView.java b/shell/platform/android/io/flutter/view/FlutterNativeView.java index c1ef24fdbe50b..455ac8c9afb4c 100644 --- a/shell/platform/android/io/flutter/view/FlutterNativeView.java +++ b/shell/platform/android/io/flutter/view/FlutterNativeView.java @@ -90,6 +90,7 @@ public void runFromBundle(FlutterRunArguments args) { * Please use runFromBundle with `FlutterRunArguments`. Parameters * `snapshotOverride` and `reuseRuntimeController` have no effect. */ + @Deprecated public void runFromBundle(String bundlePath, String snapshotOverride, String entrypoint, boolean reuseRuntimeController) { runFromBundleInternal(bundlePath, entrypoint, null, null); diff --git a/shell/platform/android/io/flutter/view/FlutterView.java b/shell/platform/android/io/flutter/view/FlutterView.java index b28ffa054d2be..10d4c59f1cf38 100644 --- a/shell/platform/android/io/flutter/view/FlutterView.java +++ b/shell/platform/android/io/flutter/view/FlutterView.java @@ -614,6 +614,7 @@ public void runFromBundle(FlutterRunArguments args) { * Please use runFromBundle with `FlutterRunArguments`. Parameter * `snapshotOverride` has no effect. */ + @Deprecated public void runFromBundle(String bundlePath, String snapshotOverride) { runFromBundle(bundlePath, snapshotOverride, "main", false); } @@ -623,6 +624,7 @@ public void runFromBundle(String bundlePath, String snapshotOverride) { * Please use runFromBundle with `FlutterRunArguments`. Parameter * `snapshotOverride` has no effect. */ + @Deprecated public void runFromBundle(String bundlePath, String snapshotOverride, String entrypoint) { runFromBundle(bundlePath, snapshotOverride, entrypoint, false); } @@ -632,6 +634,7 @@ public void runFromBundle(String bundlePath, String snapshotOverride, String ent * Please use runFromBundle with `FlutterRunArguments`. Parameters * `snapshotOverride` and `reuseRuntimeController` have no effect. */ + @Deprecated public void runFromBundle(String bundlePath, String snapshotOverride, String entrypoint, boolean reuseRuntimeController) { FlutterRunArguments args = new FlutterRunArguments(); args.bundlePath = bundlePath;