From e7073bfd0f83ed2cd28e43818695da914a01a538 Mon Sep 17 00:00:00 2001 From: Nicholas Shahan Date: Mon, 2 Oct 2023 23:33:19 +0000 Subject: [PATCH] [core] Avoid implicit downcast from dynamic Add a static type to the variable declaration so it isn't inferred as dynamic causing multiple implicit downcasts downstream. CoreLibraryReviewExempt: Trivial change. Change-Id: Ibef1d4666f5a6a5bbab363195c4b4dea66e8eac3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/328741 Reviewed-by: Lasse Nielsen Reviewed-by: Nicholas Shahan Commit-Queue: Nicholas Shahan --- sdk/lib/core/uri.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/lib/core/uri.dart b/sdk/lib/core/uri.dart index f8177c2f000..7c57e4fe63d 100644 --- a/sdk/lib/core/uri.dart +++ b/sdk/lib/core/uri.dart @@ -4206,7 +4206,7 @@ List _createTables() { } // Create the transitions for each state. - var b; + Uint8List b; // Validate as path, if it is a scheme, we handle it later. b = build(_uriStart, schemeOrPath | notSimple);