implicit-casts:false in fuchsia_remote_debug_protocol (#45239)
This commit is contained in:
committed by
GitHub
parent
e2cf2f0fa2
commit
0a66d8a7a4
@@ -171,7 +171,7 @@ class DartVm {
|
||||
await invokeRpc('getVM', timeout: timeout);
|
||||
final List<IsolateRef> result = <IsolateRef>[];
|
||||
for (Map<String, dynamic> jsonIsolate in jsonVmRef['isolates']) {
|
||||
final String name = jsonIsolate['name'];
|
||||
final String name = jsonIsolate['name'] as String;
|
||||
if (pattern.matchAsPrefix(name) != null) {
|
||||
_log.fine('Found Isolate matching "$pattern": "$name"');
|
||||
result.add(IsolateRef._fromJson(jsonIsolate, this));
|
||||
@@ -197,7 +197,7 @@ class DartVm {
|
||||
'Peer connection timed out during RPC call',
|
||||
timeout,
|
||||
);
|
||||
});
|
||||
}) as Map<String, dynamic>;
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -243,11 +243,11 @@ class FlutterView {
|
||||
/// All other cases return a [FlutterView] instance. The name of the
|
||||
/// view may be null, but the id will always be set.
|
||||
factory FlutterView._fromJson(Map<String, dynamic> json) {
|
||||
final Map<String, dynamic> isolate = json['isolate'];
|
||||
final String id = json['id'];
|
||||
final Map<String, dynamic> isolate = json['isolate'] as Map<String, dynamic>;
|
||||
final String id = json['id'] as String;
|
||||
String name;
|
||||
if (isolate != null) {
|
||||
name = isolate['name'];
|
||||
name = isolate['name'] as String;
|
||||
if (name == null) {
|
||||
throw RpcFormatError('Unable to find name for isolate "$isolate"');
|
||||
}
|
||||
@@ -286,9 +286,9 @@ class IsolateRef {
|
||||
IsolateRef._(this.name, this.number, this.dartVm);
|
||||
|
||||
factory IsolateRef._fromJson(Map<String, dynamic> json, DartVm dartVm) {
|
||||
final String number = json['number'];
|
||||
final String name = json['name'];
|
||||
final String type = json['type'];
|
||||
final String number = json['number'] as String;
|
||||
final String name = json['name'] as String;
|
||||
final String type = json['type'] as String;
|
||||
if (type == null) {
|
||||
throw RpcFormatError('Unable to find type within JSON "$json"');
|
||||
}
|
||||
|
||||
@@ -99,6 +99,6 @@ class SshCommandRunner {
|
||||
'Command failed: $command\nstdout: ${result.stdout}\nstderr: ${result.stderr}');
|
||||
}
|
||||
_log.fine('SSH command stdout in brackets:[${result.stdout}]');
|
||||
return result.stdout.split('\n');
|
||||
return (result.stdout as String).split('\n');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user