| Index: sdk/lib/uri/uri.dart
|
| diff --git a/sdk/lib/uri/uri.dart b/sdk/lib/uri/uri.dart
|
| index 6b01a0638c58de7b883d2d7c940b1019e49af44a..1766fc14fb3fdf4459c81943bb4755aa0afd376e 100644
|
| --- a/sdk/lib/uri/uri.dart
|
| +++ b/sdk/lib/uri/uri.dart
|
| @@ -24,8 +24,14 @@ class Uri {
|
| final String query;
|
| final String fragment;
|
|
|
| + /**
|
| + * Deprecated. Please use [parse] instead.
|
| + */
|
| + @deprecated
|
| Uri.fromString(String uri) : this._fromMatch(_splitRe.firstMatch(uri));
|
|
|
| + static Uri parse(String uri) => new Uri._fromMatch(_splitRe.firstMatch(uri));
|
| +
|
| Uri._fromMatch(Match m) :
|
| this.fromComponents(scheme: _emptyIfNull(m[_COMPONENT_SCHEME]),
|
| userInfo: _emptyIfNull(m[_COMPONENT_USER_INFO]),
|
| @@ -119,7 +125,7 @@ class Uri {
|
| }
|
|
|
| Uri resolve(String uri) {
|
| - return resolveUri(new Uri.fromString(uri));
|
| + return resolveUri(Uri.parse(uri));
|
| }
|
|
|
| Uri resolveUri(Uri reference) {
|
|
|