mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix Class.forName unchecked call warning (flutter/engine#13695)
This commit is contained in:
parent
784e440ebc
commit
3c3c69c4af
@ -248,7 +248,7 @@ public class FlutterEngine {
|
||||
*/
|
||||
private void registerPlugins() {
|
||||
try {
|
||||
Class generatedPluginRegistrant = Class.forName("io.plugins.GeneratedPluginRegistrant");
|
||||
Class<?> generatedPluginRegistrant = Class.forName("io.plugins.GeneratedPluginRegistrant");
|
||||
Method registrationMethod = generatedPluginRegistrant.getDeclaredMethod("registerWith", FlutterEngine.class);
|
||||
registrationMethod.invoke(null, this);
|
||||
} catch (Exception e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user