set literal conversions (#27811)

This commit is contained in:
Phil Quitslund
2019-03-06 11:05:16 -08:00
committed by GitHub
parent 608b03c79b
commit 802eca29d2
54 changed files with 133 additions and 138 deletions

View File

@@ -300,7 +300,7 @@ void main() {
const String packageName = 'doubleslashpkg';
await _createPackage(fs, packageName, 'somefile.txt', doubleSlash: true);
final Set<String> fileFilter = Set<String>();
final Set<String> fileFilter = <String>{};
final List<Uri> pkgUris = <Uri>[fs.path.toUri(basePath)]..addAll(_packages.values);
for (Uri pkgUri in pkgUris) {
if (!pkgUri.isAbsolute) {

View File

@@ -114,7 +114,7 @@ void main() {
pathToReload: anyNamed('pathToReload'),
)).thenAnswer((Invocation _) => Future<UpdateFSReport>.value(
UpdateFSReport(success: true, syncedBytes: 1000, invalidatedSourcesCount: 1)));
when(mockDevFs.assetPathsToEvict).thenReturn(Set<String>());
when(mockDevFs.assetPathsToEvict).thenReturn(<String>{});
when(mockDevFs.baseUri).thenReturn(Uri.file('test'));
setUp(() {

View File

@@ -62,7 +62,7 @@ baz=qux
});
test('is pretty random', () {
final Set<String> set = Set<String>();
final Set<String> set = <String>{};
Uuid uuid = Uuid();
for (int i = 0; i < 64; i++) {